From 52c9fece43e5845ed795887eab073c88d70420e0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 20 Apr 2025 20:41:24 -0500 Subject: add 'forge sync' --- argv.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'argv.go') diff --git a/argv.go b/argv.go index aeae447..4551c76 100644 --- a/argv.go +++ b/argv.go @@ -24,6 +24,7 @@ type args struct { List *FindCmd `arg:"subcommand:list" help:"print a table of the current repos"` Patch *PatchCmd `arg:"subcommand:patch" help:"make patchsets"` GitPull *FindCmd `arg:"subcommand:pull" help:"run 'git pull'"` + Sync *SyncCmd `arg:"subcommand:sync" help:"sync repos with upstream"` URL string `arg:"--connect" help:"forge url"` All bool `arg:"--all" help:"git commit --all"` Build string `arg:"--build" help:"build a repo"` @@ -91,6 +92,11 @@ type CheckoutCmd struct { Master *FindCmd `arg:"subcommand:master" help:"git checkout master"` } +type SyncCmd struct { + Clean *EmptyCmd `arg:"subcommand:clean" help:"sync everything to upstream master"` + User *EmptyCmd `arg:"subcommand:user" help:"sync everything to user"` +} + type DirtyCmd struct { } -- cgit v1.2.3