From b95b8bf55b6598d27a143e43d2353737e5bbc1b1 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 10 Oct 2025 05:50:11 -0500 Subject: an edge case to handle when you are on a branch that doesn't exist --- argv.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'argv.go') diff --git a/argv.go b/argv.go index 290402a..952d79d 100644 --- a/argv.go +++ b/argv.go @@ -54,17 +54,17 @@ type EmptyCmd struct { type testCmd string type ShowCmd struct { - Dirty *EmptyCmd `arg:"subcommand:dirty" help:"show dirty git repos"` - Porcelain *EmptyCmd `arg:"subcommand:porcelain" help:"git status --porcelain"` - Repo *RepoCmd `arg:"subcommand:repos" help:"print a table of the current repos"` - Tag *TagCmd `arg:"subcommand:tag" help:"show git tags"` + Dirty *EmptyCmd `arg:"subcommand:dirty" help:"show dirty git repos"` + Repo *RepoCmd `arg:"subcommand:repos" help:"print a table of the current repos"` + Tag *TagCmd `arg:"subcommand:tag" help:"show git tags"` } type FixCmd struct { - Urls bool `arg:"--urls" help:"check for changes in repo urls"` - Untracked bool `arg:"--untracked" help:"git untracked file list"` - DeleteUser bool `arg:"--delete-user" help:"delete all user branches (checks for safety)"` - Prune bool `arg:"--prune" help:"'git fetch --prune' everywhere"` + Porcelain *EmptyCmd `arg:"subcommand:porcelain" help:"git status --porcelain"` + Urls bool `arg:"--urls" help:"check for changes in repo urls"` + Untracked bool `arg:"--untracked" help:"git untracked file list"` + DeleteUser bool `arg:"--delete-user" help:"delete all user branches (checks for safety)"` + Prune bool `arg:"--prune" help:"'git fetch --prune' everywhere"` } func (ShowCmd) Examples() string { -- cgit v1.2.3