aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/idxfile/encoder.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-07-26 11:18:12 +0200
committerGitHub <noreply@github.com>2017-07-26 11:18:12 +0200
commitd7b898ea3be0342f064ad63f93aaffdb6518a5b3 (patch)
tree952839005580551bf9042ded89e2dcda56d779fc /plumbing/format/idxfile/encoder.go
parentfbf2a4ab4588c78e3d9d0265dba774ae6b388b5f (diff)
parentc64eb817d5e5cbaec10dea1342e1ec95721e886b (diff)
downloadgo-git-d7b898ea3be0342f064ad63f93aaffdb6518a5b3.tar.gz
Merge pull request #510 from smola/refactor-idxfile
packfile: create packfile.Index and reuse it
Diffstat (limited to 'plumbing/format/idxfile/encoder.go')
-rw-r--r--plumbing/format/idxfile/encoder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/format/idxfile/encoder.go b/plumbing/format/idxfile/encoder.go
index 71e1b3f..d8f4d94 100644
--- a/plumbing/format/idxfile/encoder.go
+++ b/plumbing/format/idxfile/encoder.go
@@ -124,7 +124,7 @@ func (e *Encoder) encodeChecksums(idx *Idxfile) (int, error) {
}
// EntryList implements sort.Interface allowing sorting in increasing order.
-type EntryList []Entry
+type EntryList []*Entry
func (p EntryList) Len() int { return len(p) }
func (p EntryList) Less(i, j int) bool { return p[i].Hash.String() < p[j].Hash.String() }