summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--argv.go1
-rw-r--r--doShow.go5
2 files changed, 6 insertions, 0 deletions
diff --git a/argv.go b/argv.go
index 952d79d..1e02288 100644
--- a/argv.go
+++ b/argv.go
@@ -55,6 +55,7 @@ type testCmd string
type ShowCmd struct {
Dirty *EmptyCmd `arg:"subcommand:dirty" help:"show dirty git repos"`
+ Mtime *EmptyCmd `arg:"subcommand:mtime" help:"show mtime changes"`
Repo *RepoCmd `arg:"subcommand:repos" help:"print a table of the current repos"`
Tag *TagCmd `arg:"subcommand:tag" help:"show git tags"`
}
diff --git a/doShow.go b/doShow.go
index 0b53cb3..061f617 100644
--- a/doShow.go
+++ b/doShow.go
@@ -18,6 +18,11 @@ func doShow() (string, error) {
return "tags shown", nil
}
+ if argv.Show.Mtime != nil {
+ s, err := me.forge.Repos.ScanAllMtimesVerbose()
+ return s, err
+ }
+
found := findRepos()
if showUrls() {
found.SortNamespace()