diff options
| author | Jeff Carr <[email protected]> | 2025-01-20 01:40:32 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-20 01:40:32 -0600 |
| commit | 52b8a4e3125647a3e0f203a19e0c3af3f93458dd (patch) | |
| tree | 5b0d42b837ddc1a620d6c4234925f9c7fb5ed7b5 /humanTable.go | |
| parent | b770759167d8fa470eca8f0fd9959d11433dff11 (diff) | |
need better handling here
Diffstat (limited to 'humanTable.go')
| -rw-r--r-- | humanTable.go | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/humanTable.go b/humanTable.go index 0228a92..f9c2394 100644 --- a/humanTable.go +++ b/humanTable.go @@ -181,6 +181,12 @@ func (f *Forge) printRepoToTable(repo *gitpb.Repo) { // age := shell.FormatDuration(time.Since(ctime)) age := shell.FormatDuration(repo.BranchAge(cname)) + if f.Config.IsReadOnly(repo.GetGoPath()) { + // end += "(readonly) " + } else { + end += "(rw) " + } + if repo.IsDirty() { age = "" end += "(dirty) " @@ -188,9 +194,12 @@ func (f *Forge) printRepoToTable(repo *gitpb.Repo) { start := standardTable8(gopath, cname, age, mhort, dhort, uhort, chort, thort, rtype) - if f.Config.IsReadOnly(repo.GetGoPath()) { - end += "(readonly) " + if rtype == "protobuf" { + if repo.GoInfo.GoBinary { + end += "(binary) " + } } + if repo.GetMasterBranchName() != "master" && repo.GetMasterBranchName() != "main" { end += "(m:" + repo.GetMasterBranchName() + ") " } @@ -211,6 +220,7 @@ func (f *Forge) printRepoToTable(repo *gitpb.Repo) { switch repo.GetState() { case "PERFECT": case "unchanged": + case "dirty": case "unknown branches": if repo.CurrentTag == nil { end += "(" + repo.GetState() + ") " |
