aboutsummaryrefslogtreecommitdiffstats
path: root/references.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-13 01:51:00 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-13 01:51:00 +0200
commita6ea9e8dd2eda48c8405f609e0fb444d3717af53 (patch)
treea2815bca686619d10151a531cddf5a7fdadedffa /references.go
parentae999ede139f5fa5601ffb7c55979608b112d274 (diff)
downloadgo-git-a6ea9e8dd2eda48c8405f609e0fb444d3717af53.tar.gz
Repository and Remote API changes
Diffstat (limited to 'references.go')
-rw-r--r--references.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/references.go b/references.go
index 9e969d8..7590560 100644
--- a/references.go
+++ b/references.go
@@ -19,7 +19,7 @@ import (
// therefore can appear repeated in the list.
// (see git path-id for hints on how to fix this).
func (c *Commit) References(path string) ([]*Commit, error) {
- result := make([]*Commit, 0)
+ var result []*Commit
seen := make(map[core.Hash]struct{}, 0)
if err := walkGraph(&result, &seen, c.r, c, path); err != nil {
return nil, err