]> git.phdru.name Git - git-scripts.git/commitdiff
Change output format
authorOleg Broytman <phd@phdru.name>
Fri, 10 Jun 2016 11:59:28 +0000 (14:59 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 10 Jun 2016 11:59:28 +0000 (14:59 +0300)
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
set-commit-date-repos
show-remotes-not-synced

index 1073bc8e19d969765011e31d61d5d05988723858..e1c6928183d8d6a812ca440c8a9b7267fc0096c9 100755 (executable)
@@ -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 &&
 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
 done
index f565a1cd277ee4af5c397d55ed64431c55d7716a..727b0830faa7c39f8f908b2c2d94c7206b687f6e 100755 (executable)
@@ -7,4 +7,4 @@ prog_dir="`pwd`" &&
 
 exec "$prog_dir"/do-all \
    'test "$g" = "$d/.git" || continue &&' \
 
 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'
index be4a40465adde9dd60bb99340c0a8ecef34c026c..786b57427e7f14f421acbb374a2963c2710eb4a4 100755 (executable)
@@ -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 "$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"'