s/GitPull/Pull/
This commit is contained in:
parent
e2d33ea496
commit
5d57a8968d
2
argv.go
2
argv.go
|
@ -24,7 +24,7 @@ type args struct {
|
||||||
GitFetch *FindCmd `arg:"subcommand:fetch" help:"run 'git fetch master'"`
|
GitFetch *FindCmd `arg:"subcommand:fetch" help:"run 'git fetch master'"`
|
||||||
List *FindCmd `arg:"subcommand:list" help:"print a table of the current repos"`
|
List *FindCmd `arg:"subcommand:list" help:"print a table of the current repos"`
|
||||||
Patch *PatchCmd `arg:"subcommand:patch" help:"make patchsets"`
|
Patch *PatchCmd `arg:"subcommand:patch" help:"make patchsets"`
|
||||||
GitPull *PullCmd `arg:"subcommand:pull" help:"run 'git pull'"`
|
Pull *PullCmd `arg:"subcommand:pull" help:"run 'git pull'"`
|
||||||
URL string `arg:"--connect" help:"forge url"`
|
URL string `arg:"--connect" help:"forge url"`
|
||||||
All bool `arg:"--all" help:"git commit --all"`
|
All bool `arg:"--all" help:"git commit --all"`
|
||||||
Build string `arg:"--build" help:"build a repo"`
|
Build string `arg:"--build" help:"build a repo"`
|
||||||
|
|
|
@ -46,7 +46,7 @@ func (args) doBashAuto() {
|
||||||
case "list":
|
case "list":
|
||||||
fmt.Println("--full")
|
fmt.Println("--full")
|
||||||
case "pull":
|
case "pull":
|
||||||
fmt.Println("list dirty patches sync --force")
|
fmt.Println("dirty clean list patches sync --force")
|
||||||
case "--find":
|
case "--find":
|
||||||
fmt.Println("foo bar")
|
fmt.Println("foo bar")
|
||||||
case "patch":
|
case "patch":
|
||||||
|
@ -64,7 +64,7 @@ func (args) doBashAuto() {
|
||||||
default:
|
default:
|
||||||
if argv.BashAuto[0] == ARGNAME {
|
if argv.BashAuto[0] == ARGNAME {
|
||||||
// list the subcommands here
|
// list the subcommands here
|
||||||
fmt.Println("--bash list checkout clean commit config dirty debug fetch patch pull")
|
fmt.Println("--bash list checkout commit config dirty debug fetch patch pull")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
|
|
@ -44,7 +44,7 @@ func rillPull(repo *gitpb.Repo) error {
|
||||||
// is every repo on the devel branch?
|
// is every repo on the devel branch?
|
||||||
|
|
||||||
func doGitPullNew() error {
|
func doGitPullNew() error {
|
||||||
if argv.GitPull == nil {
|
if argv.Pull == nil {
|
||||||
return fmt.Errorf("not really 'fetch pull'")
|
return fmt.Errorf("not really 'fetch pull'")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,11 +63,11 @@ func doGitPullNew() error {
|
||||||
|
|
||||||
check := gitpb.NewRepos()
|
check := gitpb.NewRepos()
|
||||||
|
|
||||||
if argv.GitPull.Dirty != nil {
|
if argv.Pull.Dirty != nil {
|
||||||
check = findDirty()
|
check = findDirty()
|
||||||
}
|
}
|
||||||
|
|
||||||
if argv.GitPull.Patches != nil {
|
if argv.Pull.Patches != nil {
|
||||||
check = findReposWithPatches()
|
check = findReposWithPatches()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,10 +16,10 @@ import (
|
||||||
// trys to figure out if there is still something to update
|
// trys to figure out if there is still something to update
|
||||||
|
|
||||||
func doSync() error {
|
func doSync() error {
|
||||||
if argv.GitPull.Sync.Clean != nil {
|
if argv.Pull.Sync.Clean != nil {
|
||||||
return doSyncClean()
|
return doSyncClean()
|
||||||
}
|
}
|
||||||
if argv.GitPull.Sync.User != nil {
|
if argv.Pull.Sync.User != nil {
|
||||||
return doSyncUser()
|
return doSyncUser()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue