aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/packfile/scanner.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-04-26 15:49:34 +0200
committerGitHub <noreply@github.com>2017-04-26 15:49:34 +0200
commite85778eecc8df3356a238396933c1303ab79124c (patch)
tree898fcce1fa5f6ddceaf102a408d8319bf4bdd1ae /plumbing/format/packfile/scanner.go
parentdf8b1cb8a8d4b3d53cbe64ae306d72bde29b56b0 (diff)
parentbca4f9541ae0620ff203bde6da5e3126cfa16f04 (diff)
downloadgo-git-e85778eecc8df3356a238396933c1303ab79124c.tar.gz
Merge pull request #360 from smola/go-vet
fix go vet issues, add go vet to CI
Diffstat (limited to 'plumbing/format/packfile/scanner.go')
-rw-r--r--plumbing/format/packfile/scanner.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/plumbing/format/packfile/scanner.go b/plumbing/format/packfile/scanner.go
index d8cece6..97512d1 100644
--- a/plumbing/format/packfile/scanner.go
+++ b/plumbing/format/packfile/scanner.go
@@ -300,8 +300,9 @@ func (s *Scanner) copyObject(w io.Writer) (int64, error) {
return io.Copy(w, s.zr)
}
-// Seek sets a new offset from start, returns the old position before the change
-func (s *Scanner) Seek(offset int64) (previous int64, err error) {
+// SeekFromStart sets a new offset from start, returns the old position before
+// the change.
+func (s *Scanner) SeekFromStart(offset int64) (previous int64, err error) {
// if seeking we assume that you are not interested on the header
if s.version == 0 {
s.version = VersionSupported