summaryrefslogtreecommitdiff
path: root/git-repack.sh
diff options
context:
space:
mode:
authorLukas_Sandström <lukass@etek.chalmers.se>2005-11-11 01:25:04 +0100
committerJunio C Hamano <junkio@cox.net>2005-11-11 21:19:11 -0800
commit1c3039e8f1eb01766cff976793c8f439095967f6 (patch)
tree7aa3607d1f98e81c1efd7a5c1cbc718a2f82b6be /git-repack.sh
parent9bc0f32c77b755b8d77d215cc47fafff53cad6f5 (diff)
downloadgit-1c3039e8f1eb01766cff976793c8f439095967f6.tar.gz
Make git-pack-redundant consider alt-odbs
This patch changes git-pack-redundant so that packfiles in alternate object directories also are considered when deciding which objects are redundant. This functionality is controlled by the flag '--alt-odb'. Also convert the other flags to the long form, and update docs and git-repack accordingly. Signed-off-by: Lukas Sandström <lukass@etek.chalmers.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-repack.sh')
-rwxr-xr-xgit-repack.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-repack.sh b/git-repack.sh
index 4ce00225da..f34720701b 100755
--- a/git-repack.sh
+++ b/git-repack.sh
@@ -45,7 +45,7 @@ if [ -z "$name" ]; then
if test "$remove_redandant" = t ; then
echo "Removing redundant packs."
sync
- redundant=$(git-pack-redundant -a)
+ redundant=$(git-pack-redundant --all)
if test "$redundant" != "" ; then
echo $redundant | xargs rm
fi
@@ -63,7 +63,7 @@ exit
if test "$remove_redandant" = t
then
sync
- redundant=$(git-pack-redundant -a)
+ redundant=$(git-pack-redundant --all)
if test "$redundant" != "" ; then
echo $redundant | xargs rm
fi