diff options
| author | Jeff Carr <[email protected]> | 2025-01-07 18:24:17 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-07 18:24:17 -0600 |
| commit | e323d5920c76e88948da9f9cfca9ef07e7ef9dd3 (patch) | |
| tree | fd1ee5fb4bee8f5384d918c5b0ade4cd8e63cf3d /git.go | |
| parent | 07e0fdc43724433e18f2fb469b829a7b0b125800 (diff) | |
rm old code
Diffstat (limited to 'git.go')
| -rw-r--r-- | git.go | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -6,6 +6,7 @@ import ( "time" "go.wit.com/lib/gui/shell" + "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -199,7 +200,7 @@ func (rs *RepoStatus) setLastTagVersion() { func (rs *RepoStatus) populateTags() { tmp := rs.realPath.String() + "/.git/refs/tags" log.Log(REPO, "populateTags() path =", tmp) - for _, tag := range listFiles(tmp) { + for _, tag := range gitpb.ListFiles(tmp) { if rs.tags[tag] == "" { log.Log(REPO, "populateTags() Adding new tag", tag) // rs.tagsDrop.AddText(tag) @@ -209,12 +210,13 @@ func (rs *RepoStatus) populateTags() { // rs.tagsDrop.SetText(rs.lasttagrev) } +/* func (rs *RepoStatus) getBranches() []string { var all []string var heads []string var remotes []string - heads = listFiles(rs.realPath.String() + "/.git/refs/heads") - remotes = listFiles(rs.realPath.String() + "/.git/refs/remotes") + heads = gitpb.ListFiles(rs.realPath.String() + "/.git/refs/heads") + remotes = gitpb.ListFiles(rs.realPath.String() + "/.git/refs/remotes") all = heads @@ -225,6 +227,7 @@ func (rs *RepoStatus) getBranches() []string { } return all } +*/ // returns quickly based on the last time it was checked func (rs *RepoStatus) IsDirty() bool { |
