]> git.phdru.name Git - git-scripts.git/commitdiff
Add script repack-not-packed
authorOleg Broytman <phd@phdru.name>
Fri, 7 Nov 2014 17:44:08 +0000 (20:44 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 7 Nov 2014 17:44:08 +0000 (20:44 +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..27cc8f2
--- /dev/null
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+prog_dir=`dirname "$0"`
+for d in `"$prog_dir"/ls-not-packed`
+do
+   echo "----- $d -----" && cd "$d" &&
+   git repack -a -d --depth=250 --window=250 || exit 1
+done