From ac2958e5598a33230caa81a307cde211f1be07cc Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 18 Jan 2025 15:48:52 -0600 Subject: code now moved to gitpb --- git.go | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'git.go') diff --git a/git.go b/git.go index 46a0ceb..060ad1e 100644 --- a/git.go +++ b/git.go @@ -1,14 +1,5 @@ package repostatus -import ( - "errors" - "strings" - - "go.wit.com/lib/gui/shell" - "go.wit.com/lib/protobuf/gitpb" - "go.wit.com/log" -) - // remove this everything func (rs *RepoStatus) Path() string { return rs.realPath.String() @@ -48,7 +39,8 @@ func (rs *RepoStatus) checkCurrentBranchName() string { return out } -func (rs *RepoStatus) gitDescribeByHash(hash string) (string, error) { +/* +func (rs *RepoStatus) oldgitDescribeByHash(hash string) (string, error) { if hash == "" { return "", errors.New("hash was blank") } @@ -61,7 +53,7 @@ func (rs *RepoStatus) gitDescribeByHash(hash string) (string, error) { return out, r.Error } -func (rs *RepoStatus) gitDescribeByName(name string) (string, error) { +func (rs *RepoStatus) oldgitDescribeByName(name string) (string, error) { name = strings.TrimSpace(name) if name == "" { @@ -88,7 +80,9 @@ func (rs *RepoStatus) gitDescribeByName(name string) (string, error) { return strings.TrimSpace(output), r.Error } +*/ +/* func (rs *RepoStatus) populateTags() { tmp := rs.realPath.String() + "/.git/refs/tags" log.Log(REPO, "populateTags() path =", tmp) @@ -101,3 +95,4 @@ func (rs *RepoStatus) populateTags() { } // rs.tagsDrop.SetText(rs.lasttagrev) } +*/ -- cgit v1.2.3