diff options
author | Alexander Block <ablock84@gmail.com> | 2024-04-09 00:23:26 +0200 |
---|---|---|
committer | Alexander Block <ablock84@gmail.com> | 2024-04-09 00:23:26 +0200 |
commit | 23fa5899766dd023a3b6d341796b166efac56441 (patch) | |
tree | fa745ca9fabb477fb9bce3bf9b1123b0448a8859 /plumbing/format/index/decoder.go | |
parent | f763fd3baf2677698937e7e864489b1440136b84 (diff) | |
download | go-git-23fa5899766dd023a3b6d341796b166efac56441.tar.gz |
plumbing: Add link to index-format docs
Diffstat (limited to 'plumbing/format/index/decoder.go')
-rw-r--r-- | plumbing/format/index/decoder.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plumbing/format/index/decoder.go b/plumbing/format/index/decoder.go index 6634688..f43b1c5 100644 --- a/plumbing/format/index/decoder.go +++ b/plumbing/format/index/decoder.go @@ -273,6 +273,8 @@ func (d *Decoder) readExtension(idx *Index) error { return err } default: + // See https://git-scm.com/docs/index-format, which says: + // If the first byte is 'A'..'Z' the extension is optional and can be ignored. if header[0] < 'A' || header[0] > 'Z' { return ErrUnknownExtension } |