diff options
| author | Jeff Carr <[email protected]> | 2025-01-18 15:48:52 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-18 15:48:52 -0600 |
| commit | ac2958e5598a33230caa81a307cde211f1be07cc (patch) | |
| tree | 167d8787de450e7c6e98474e147e8047b9adfdd8 /git.go | |
| parent | a15d447fbd49c2ef7732abc77c973a2469fdac99 (diff) | |
code now moved to gitpbv0.22.33
Diffstat (limited to 'git.go')
| -rw-r--r-- | git.go | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -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) } +*/ |
