Skip to content

Commit

Permalink
plumbing: Add link to index-format docs
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Apr 8, 2024
1 parent f763fd3 commit 23fa589
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plumbing/format/index/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 23fa589

Please sign in to comment.