]> git.phdru.name Git - git-scripts.git/commitdiff
Add set-commit-date-not-packed
authorOleg Broytman <phd@phdru.name>
Wed, 30 Mar 2016 21:56:55 +0000 (00:56 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 30 Mar 2016 22:00:59 +0000 (01:00 +0300)
Call set-commit-date-recursive on all not-packed repositories.

set-commit-date-not-packed [new file with mode: 0755]

diff --git a/set-commit-date-not-packed b/set-commit-date-not-packed
new file mode 100755 (executable)
index 0000000..1073bc8
--- /dev/null
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+# Call set-commit-date-recursive on all not-packed repositories
+
+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
+done