From 23fa5899766dd023a3b6d341796b166efac56441 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Tue, 9 Apr 2024 00:23:26 +0200 Subject: plumbing: Add link to index-format docs --- plumbing/format/index/decoder.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plumbing/format/index') 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 } -- cgit