From: Oleg Broytman Date: Wed, 24 Feb 2016 19:37:13 +0000 (+0300) Subject: Split set-commit-date-repos into set-commit-date-recursive X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=3970e918c6d6dc945a321565a0eed4bb9ba1afb0;p=git-scripts.git Split set-commit-date-repos into set-commit-date-recursive --- diff --git a/set-commit-date-recursive b/set-commit-date-recursive new file mode 100755 index 0000000..c8a2f0a --- /dev/null +++ b/set-commit-date-recursive @@ -0,0 +1,8 @@ +#! /bin/sh + +# Call set-commit-date on all submodules. + +prog_dir="`dirname \"$0\"`" && + +"$prog_dir"/set-commit-date && \ +exec git submodule foreach "$prog_dir"/set-commit-date diff --git a/set-commit-date-repos b/set-commit-date-repos index 99e04ce..41f1686 100755 --- a/set-commit-date-repos +++ b/set-commit-date-repos @@ -7,5 +7,4 @@ prog_dir="`pwd`" && exec "$prog_dir"/do-all \ 'test "$g" = "$d/.git" || continue &&' \ - 'cd "$d"; echo "$d"; "$prog_dir"/set-commit-date &&' \ - 'git submodule foreach "$prog_dir"/set-commit-date' + 'cd "$d"; echo "$d"; "$prog_dir"/set-commit-date-recursive'