minor fixes

This commit is contained in:
Jeff Carr 2025-02-07 19:10:37 -06:00
parent 1d89d38bc3
commit 1dd4a2d979
4 changed files with 16 additions and 14 deletions

13
argv.go
View File

@ -106,13 +106,12 @@ type DirtyCmd struct {
}
type FindCmd struct {
Pub *EmptyCmd `arg:"subcommand:pub" help:"fix .config/forge/ and/or repos.pb protobuf file"`
All bool `arg:"--all" help:"select every repo (the default)"`
Mine bool `arg:"--mine" help:"your repos as defined in the forge config"`
Favorites bool `arg:"--favorites" help:"your repos configured as favorites"`
Private bool `arg:"--private" help:"your private repos from your .config/forge/"`
Dirty bool `arg:"--dirty" help:"only use dirty git repos"`
User bool `arg:"--user" help:"show repos on the user branch"`
All bool `arg:"--all" help:"select every repo (the default)"`
Mine bool `arg:"--mine" help:"your repos as defined in the forge config"`
Favorites bool `arg:"--favorites" help:"your repos configured as favorites"`
Private bool `arg:"--private" help:"your private repos from your .config/forge/"`
Dirty bool `arg:"--dirty" help:"only use dirty git repos"`
User bool `arg:"--user" help:"show repos on the user branch"`
// ReadOnly bool `arg:"--readonly" help:"include read-only repos"`
}

View File

@ -42,7 +42,7 @@ func (args) doBashAuto() {
case "examine":
fmt.Println("fix")
case "list":
fmt.Println("--all --mine --favorites --private pub")
fmt.Println("--all --mine --favorites --private")
case "pull":
fmt.Println("--verbose")
case "patch":

14
find.go
View File

@ -20,11 +20,6 @@ func (f *FindCmd) findRepos() {
return
}
if f.Pub != nil {
findPublishable()
return
}
if f.All {
findAll()
return
@ -137,13 +132,20 @@ func findReposWithPatches() {
all := me.forge.Repos.SortByFullPath()
for all.Scan() {
repo := all.Next()
if repo.GetUserVersion() == "" || repo.GetUserVersion() == "uerr" {
if repo.GetTargetVersion() != "" {
// add everything that has a target version set
me.found.AppendByGoPath(repo)
continue
}
if repo.IsDirty() {
// always add dirty branches
me.found.AppendByGoPath(repo)
continue
}
if repo.GetUserVersion() == "" || repo.GetUserVersion() == "uerr" {
// skip anything without a user branch
continue
}
if repo.GetUserVersion() != repo.GetDevelVersion() {
me.found.AppendByGoPath(repo)
continue

View File

@ -169,6 +169,7 @@ func (r *patchesWindow) addPatchsetNew(pset *forgepb.Patchset) {
r.psetgrid.NewLabel(pset.Name)
r.psetgrid.NewLabel(pset.Comment)
r.psetgrid.NewLabel(pset.GitAuthorName)
r.psetgrid.NewLabel(pset.Uuid)
ctime := pset.Ctime.AsTime()
stime := ctime.UTC().Format("2006-01-02_15:04:05_UTC")