fork of go-git with some jj specific features
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

*: Small fixes to remove linter warnings

Signed-off-by: Paulo Gomes <pjbgf@linux.com>

+7 -7
-1
plumbing/format/index/decoder.go
··· 225 225 peeked, err = d.buf.Peek(peekLen) 226 226 if len(peeked) < peekLen { 227 227 // there can't be an extension at this point, so let's bail out 228 - err = nil 229 228 break 230 229 } 231 230 if err != nil {
+1 -1
repository.go
··· 1037 1037 return r.Storer.SetConfig(cfg) 1038 1038 } 1039 1039 1040 - func (r *Repository) updateRemoteConfigIfNeeded(o *CloneOptions, c *config.RemoteConfig, head *plumbing.Reference) error { 1040 + func (r *Repository) updateRemoteConfigIfNeeded(o *CloneOptions, c *config.RemoteConfig, _ *plumbing.Reference) error { 1041 1041 if !o.SingleBranch { 1042 1042 return nil 1043 1043 }
+2 -2
storage/filesystem/dotgit/dotgit_test.go
··· 611 611 testObjectsWithPrefix(c, fs, dir) 612 612 } 613 613 614 - func testObjects(c *C, fs billy.Filesystem, dir *DotGit) { 614 + func testObjects(c *C, _ billy.Filesystem, dir *DotGit) { 615 615 hashes, err := dir.Objects() 616 616 c.Assert(err, IsNil) 617 617 c.Assert(hashes, HasLen, 187) ··· 620 620 c.Assert(hashes[2].String(), Equals, "03db8e1fbe133a480f2867aac478fd866686d69e") 621 621 } 622 622 623 - func testObjectsWithPrefix(c *C, fs billy.Filesystem, dir *DotGit) { 623 + func testObjectsWithPrefix(c *C, _ billy.Filesystem, dir *DotGit) { 624 624 prefix, _ := hex.DecodeString("01d5") 625 625 hashes, err := dir.ObjectsWithPrefix(prefix) 626 626 c.Assert(err, IsNil)
+2 -1
worktree_linux.go
··· 1 + //go:build linux 1 2 // +build linux 2 3 3 4 package git ··· 21 22 } 22 23 } 23 24 24 - func isSymlinkWindowsNonAdmin(err error) bool { 25 + func isSymlinkWindowsNonAdmin(_ error) bool { 25 26 return false 26 27 }
+2 -2
worktree_status.go
··· 488 488 return w.r.Storer.SetEncodedObject(obj) 489 489 } 490 490 491 - func (w *Worktree) fillEncodedObjectFromFile(dst io.Writer, path string, fi os.FileInfo) (err error) { 491 + func (w *Worktree) fillEncodedObjectFromFile(dst io.Writer, path string, _ os.FileInfo) (err error) { 492 492 src, err := w.Filesystem.Open(path) 493 493 if err != nil { 494 494 return err ··· 503 503 return err 504 504 } 505 505 506 - func (w *Worktree) fillEncodedObjectFromSymlink(dst io.Writer, path string, fi os.FileInfo) error { 506 + func (w *Worktree) fillEncodedObjectFromSymlink(dst io.Writer, path string, _ os.FileInfo) error { 507 507 target, err := w.Filesystem.Readlink(path) 508 508 if err != nil { 509 509 return err