]> git.phdru.name Git - git-scripts.git/commitdiff
Split set-commit-date-repos into set-commit-date-recursive
authorOleg Broytman <phd@phdru.name>
Wed, 24 Feb 2016 19:37:13 +0000 (22:37 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 24 Feb 2016 19:37:13 +0000 (22:37 +0300)
set-commit-date-recursive [new file with mode: 0755]
set-commit-date-repos

diff --git a/set-commit-date-recursive b/set-commit-date-recursive
new file mode 100755 (executable)
index 0000000..c8a2f0a
--- /dev/null
@@ -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
index 99e04ce015082cabb4ff61257275b06632bf2372..41f1686c79f7a4b167df200c790e0cb912d3b3d4 100755 (executable)
@@ -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'