From: Oleg Broytman Date: Fri, 10 Jun 2016 11:59:28 +0000 (+0300) Subject: Change output format X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b455dc19886851e7cf49376286fb0285ae829e96;p=git-scripts.git 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. --- 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"'