X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-repack.sh;h=4e16d34971d5045b095a42cfe27819e666f157a6;hb=60abce3c0f41952de7dc1a4abefcb988898b71a4;hp=d341966efba783b294792c9a13915982f70a1f73;hpb=41f222e87a9062833712367d66114cae90b3769a;p=git.git diff --git a/git-repack.sh b/git-repack.sh index d341966e..4e16d349 100755 --- a/git-repack.sh +++ b/git-repack.sh @@ -11,7 +11,7 @@ do case "$1" in -n) no_update_info=t ;; -a) all_into_one=t ;; - -d) remove_redandant=t ;; + -d) remove_redundant=t ;; -l) local=t ;; *) break ;; esac @@ -32,8 +32,8 @@ case ",$all_into_one," in rev_list= rev_parse='--all' pack_objects= - # This part is a stop-gap until we have proper pack redundancy - # checker. + + # Redundancy check in all-into-one case is trivial. existing=`cd "$PACKDIR" && \ find . -type f \( -name '*.pack' -o -name '*.idx' \) -print` ;; @@ -56,9 +56,9 @@ mv .tmp-pack-$name.pack "$PACKDIR/pack-$name.pack" && mv .tmp-pack-$name.idx "$PACKDIR/pack-$name.idx" || exit -if test "$remove_redandant" = t +if test "$remove_redundant" = t then - # We know $existing are all redandant only when + # We know $existing are all redundant only when # all-into-one is used. if test "$all_into_one" != '' && test "$existing" != '' then