more on 'forge pull'

This commit is contained in:
Jeff Carr 2025-07-07 17:34:10 -05:00
parent 041be81af1
commit 08b7f2406c
2 changed files with 26 additions and 34 deletions

View File

@ -60,4 +60,4 @@ devel:
pull: install
forge pull dirty
forge pull patches
# forge pull patches

View File

@ -48,39 +48,7 @@ func doGitPullNew() error {
return fmt.Errorf("not really 'fetch pull'")
}
if argv.GitPull.Dirty != nil {
found := findDirty()
me.forge.PrintHumanTableFull(found)
return nil
}
if argv.GitPull.Patches != nil {
check := findReposWithPatches()
me.forge.PrintHumanTableFull(check)
found, err := me.forge.LookupPB(check)
if err != nil {
return err
}
me.forge.PrintHumanTableFull(found)
return nil
}
if argv.GitPull.Test != nil {
log.Info("list repo's with updates here")
found := doFind()
// me.forge.PrintHumanTable(found)
me.forge.PrintHumanTableFull(found)
/*
// print out the repos
if argv.List.Full {
me.forge.PrintHumanTableFull(found)
} else {
me.forge.PrintHumanTable(found)
}
*/
return nil
}
if argv.Force {
now := time.Now()
pullcount := me.forge.RillFuncError(rillPull)
count := me.forge.RillReload()
@ -93,6 +61,30 @@ func doGitPullNew() error {
return nil
}
check := gitpb.NewRepos()
if argv.GitPull.Dirty != nil {
check = findDirty()
}
if argv.GitPull.Patches != nil {
check = findReposWithPatches()
}
if check.Len() == 0 {
check = doFind()
}
me.forge.PrintHumanTableFull(check)
found, err := me.forge.LookupPB(check)
if err != nil {
return err
}
me.forge.PrintHumanTableFull(found)
return nil
}
/*
func doGitPull() {
allerr := me.found.RillGitPull(40, 5)