From 85eaee4c0ada5da8843d699dddf278476f08e99a Mon Sep 17 00:00:00 2001 From: despiegk Date: Mon, 25 Aug 2025 07:14:11 +0200 Subject: [PATCH] ... --- lib/develop/gittools/gittools_do.v | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/develop/gittools/gittools_do.v b/lib/develop/gittools/gittools_do.v index aa5a152a..fe300878 100644 --- a/lib/develop/gittools/gittools_do.v +++ b/lib/develop/gittools/gittools_do.v @@ -171,14 +171,16 @@ pub fn (mut gs GitStructure) do(args_ ReposActionsArgs) !string { need_commit0 = true } - console.print_debug(" --- status repo ${g.name}'s\n need_commit0:${need_commit0} \n need_pull0:${need_pull0} \n need_push0:${need_push0}") + // console.print_debug(" --- status repo ${g.name}'s\n need_commit0:${need_commit0} \n need_pull0:${need_pull0} \n need_push0:${need_push0}") } - console.print_debug(" --- status all repo's\n need_commit0:${need_commit0} \n need_pull0:${need_pull0} \n need_push0:${need_push0}") + // console.print_debug(" --- status all repo's\n need_commit0:${need_commit0} \n need_pull0:${need_pull0} \n need_push0:${need_push0}") + + // $dbg; mut ok := false if need_commit0 || need_pull0 || need_push0 { - mut out := '\n ** NEED TO ' + mut out := '\n\n** NEED TO ' if need_commit0 { out += 'COMMIT ' } @@ -245,7 +247,7 @@ pub fn (mut gs GitStructure) do(args_ ReposActionsArgs) !string { g.commit(msg)! has_changed = true } - if need_pull_repo { + if has_changed || need_pull_repo { if args.reset { console.print_header(' - remove changes ${g.account}/${g.name}') g.remove_changes()! @@ -254,7 +256,7 @@ pub fn (mut gs GitStructure) do(args_ ReposActionsArgs) !string { g.pull()! has_changed = true } - if need_push_repo { + if has_changed || need_push_repo { console.print_header(' - push ${g.account}/${g.name}') g.push()! has_changed = true @@ -267,7 +269,7 @@ pub fn (mut gs GitStructure) do(args_ ReposActionsArgs) !string { if has_changed { // console.clear() - console.print_header('\nCompleted required actions.\n') + console.print_header('Completed required actions.\n') gs.repos_print( filter: args.filter