@matheusbsbs / matheus-bagliano / commits / 479b56ba50
Fork 0

make "repack -f" imply "pack-objects --no-reuse-object"

Recomputing delta is much more expensive than recompressing anyway, and when the user says 'repack -f', it is a sign that the user is willing to spend CPU cycles. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Nicolas Pitre committed May 9, 2007 at 12:59 UTC 479b56ba50144b30f28c5b225d412125c07def9f
1 file changed +3 -3
git-repack.sh
+3 -3
@@ -8,7 +8,7 @@ SUBDIRECTORY_OK='Yes'
8 . git-sh-setup
9
10 no_update_info= all_into_one= remove_redundant=
11 -local= quiet= no_reuse_delta= extra=
11 +local= quiet= no_reuse= extra=
12 while case "$#" in 0) break ;; esac
13 do
14 case "$1" in
@@ -16,7 +16,7 @@ do
16 -a) all_into_one=t ;;
17 -d) remove_redundant=t ;;
18 -q) quiet=-q ;;
19 - -f) no_reuse_delta=--no-reuse-delta ;;
19 + -f) no_reuse=--no-reuse-object ;;
20 -l) local=--local ;;
21 --window=*) extra="$extra $1" ;;
22 --depth=*) extra="$extra $1" ;;
@@ -61,7 +61,7 @@ case ",$all_into_one," in
61 ;;
62 esac
63
64 -args="$args $local $quiet $no_reuse_delta$extra"
64 +args="$args $local $quiet $no_reuse$extra"
65 name=$(git-pack-objects --non-empty --all --reflog $args </dev/null "$PACKTMP") ||
66 exit 1
67 if [ -z "$name" ]; then