]> git.phdru.name Git - git-scripts.git/commitdiff
Restore repack-not-packed
authorOleg Broytman <phd@phdru.name>
Thu, 27 Nov 2014 08:07:14 +0000 (11:07 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 27 Nov 2014 08:07:14 +0000 (11:07 +0300)
repack-not-packed [new file with mode: 0755]

diff --git a/repack-not-packed b/repack-not-packed
new file mode 100755 (executable)
index 0000000..88b88bc
--- /dev/null
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+prog_dir=`dirname "$0"`
+for d in `"$prog_dir"/ls-not-packed`
+do
+   echo "----- $d -----" && cd "$d" &&
+   git repack -a -d -f --depth=250 --window=250 &&
+   git fsck --strict || exit 1
+done