From b455dc19886851e7cf49376286fb0285ae829e96 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 10 Jun 2016 14:59:28 +0300 Subject: [PATCH] Change output format Separators "-----" are required if there is repository-related output after them, but do not required if the output is repo name only. --- set-commit-date-not-packed | 2 +- set-commit-date-repos | 2 +- show-remotes-not-synced | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/set-commit-date-not-packed b/set-commit-date-not-packed index 1073bc8..e1c6928 100755 --- a/set-commit-date-not-packed +++ b/set-commit-date-not-packed @@ -6,5 +6,5 @@ cd "`dirname \"$0\"`" && prog_dir="`pwd`" && for d in `"$prog_dir"/ls-not-packed` do cd "$d"; test -d .git || continue && - echo "$d"; "$prog_dir"/set-commit-date-recursive || exit 1 + echo "----- $d -----"; "$prog_dir"/set-commit-date-recursive || exit 1 done diff --git a/set-commit-date-repos b/set-commit-date-repos index f565a1c..727b083 100755 --- a/set-commit-date-repos +++ b/set-commit-date-repos @@ -7,4 +7,4 @@ prog_dir="`pwd`" && exec "$prog_dir"/do-all \ 'test "$g" = "$d/.git" || continue &&' \ - 'cd "$d"; echo "$d"; "$prog_dir"/set-commit-date-recursive' + 'cd "$d"; echo "----- $d -----"; "$prog_dir"/set-commit-date-recursive' diff --git a/show-remotes-not-synced b/show-remotes-not-synced index be4a404..786b574 100755 --- a/show-remotes-not-synced +++ b/show-remotes-not-synced @@ -9,4 +9,4 @@ exec "`dirname \"$0\"`"/do-all \ 'test "$g" = "$d/.git" || continue; cd "$d" &&' \ 'not_up="`git remote | xargs -n1 git remote show | ' \ 'grep -F \" pushes to \" | grep -Fv \"(up to date)\"`" &&' \ - 'test -n "$not_up" && echo "----- $d -----"' + 'test -n "$not_up" && echo "$d"' -- 2.39.5