From 02a2d26694787cf2e59683bdd38274b40a9670ad Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 6 Oct 2025 05:01:51 -0500 Subject: better name. doesn't actually delete anything --- compare.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'compare.go') diff --git a/compare.go b/compare.go index c0452eb..82930eb 100644 --- a/compare.go +++ b/compare.go @@ -1,9 +1,5 @@ package gitpb -import ( - "fmt" -) - type RepoTag struct { r *Repo t *GitTag @@ -38,7 +34,7 @@ func (rt *RepoTag) GetRef() *GitTag { return rt.t } -func (t1 *RepoTag) DeleteBranch(t2 *RepoTag) ([]string, []string, []string, []string, error) { +func (t1 *RepoTag) CompareBranch(t2 *RepoTag) ([]string, []string, []string, []string, error) { lines1, cmd1, err1 := t1.r.CountDiffObjectsNEWNEW(t1.t.Refname, t2.t.Refname) // log.Info("lessthan", t1.t.Refname, t2.t.Refname, count, t1.r.FullPath) if err1 != nil { @@ -52,7 +48,7 @@ func (t1 *RepoTag) DeleteBranch(t2 *RepoTag) ([]string, []string, []string, []st return nil, nil, cmd1, cmd2, err2 } if (len(lines1) != 0) || (len(lines2) != 0) { - return lines1, lines2, cmd1, cmd2, fmt.Errorf("nope") + return lines1, lines2, cmd1, cmd2, nil } return lines1, lines2, cmd1, cmd2, nil } -- cgit v1.2.3