diff options
| author | Jeff Carr <[email protected]> | 2025-09-07 20:34:08 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-07 21:41:26 -0500 |
| commit | a099bbd3e656ac2d0cf1db656f08d91c673db437 (patch) | |
| tree | 43a5c6e3902d85a73ecc5cadba281c6dafaa0b8c /doList.go | |
| parent | c2e0e8e80b5831996da38efbfaa4bb206875bf40 (diff) | |
add support for old version of the tool using new code
Diffstat (limited to 'doList.go')
| -rw-r--r-- | doList.go | 17 |
1 files changed, 3 insertions, 14 deletions
@@ -8,23 +8,12 @@ import ( func doList() error { log.Info("do list here") - if err := me.forge.LoadPatchsets(); err != nil { - badExit(err) - } - - // first show the general patchset protobuf - for pb := range me.forge.Patchsets.IterAll() { - if pb.Name == "forge auto commit" { - pb.ShowPatchsets() - } - } - // show all the patchsets with Names for pset := range me.forge.Patchsets.IterAll() { - if pset.Name == "forge auto commit" { - continue + log.Info("Info", pset.Name, pset.Uuid) + for i, patch := range pset.Patches.Patches { + log.Info("\t", i, patch.CommitHash, patch.Namespace) } - pset.ShowPatchsets() } return nil } |
