aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authorAlexander Block <ablock84@gmail.com>2024-04-09 00:23:26 +0200
committerAlexander Block <ablock84@gmail.com>2024-04-09 00:23:26 +0200
commit23fa5899766dd023a3b6d341796b166efac56441 (patch)
treefa745ca9fabb477fb9bce3bf9b1123b0448a8859 /plumbing
parentf763fd3baf2677698937e7e864489b1440136b84 (diff)
downloadgo-git-23fa5899766dd023a3b6d341796b166efac56441.tar.gz
plumbing: Add link to index-format docs
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/format/index/decoder.go2
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
}