summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fa736f7)
raw | patch | inline | side by side (parent: fa736f7)
author | Nicolas Pitre <nico@cam.org> | |
Wed, 9 May 2007 16:59:40 +0000 (12:59 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 10 May 2007 22:22:33 +0000 (15:22 -0700) |
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>
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>
git-repack.sh | patch | blob | history |
diff --git a/git-repack.sh b/git-repack.sh
index ddfa8b44a17f1ea7ff039bca1d6132ba07e5cf12..8bf66a4fe8be4bf9e651e71b43268c54d9617776 100755 (executable)
--- a/git-repack.sh
+++ b/git-repack.sh
. git-sh-setup
no_update_info= all_into_one= remove_redundant=
-local= quiet= no_reuse_delta= extra=
+local= quiet= no_reuse= extra=
while case "$#" in 0) break ;; esac
do
case "$1" in
-a) all_into_one=t ;;
-d) remove_redundant=t ;;
-q) quiet=-q ;;
- -f) no_reuse_delta=--no-reuse-delta ;;
+ -f) no_reuse=--no-reuse-object ;;
-l) local=--local ;;
--window=*) extra="$extra $1" ;;
--depth=*) extra="$extra $1" ;;
;;
esac
-args="$args $local $quiet $no_reuse_delta$extra"
+args="$args $local $quiet $no_reuse$extra"
name=$(git-pack-objects --non-empty --all --reflog $args </dev/null "$PACKTMP") ||
exit 1
if [ -z "$name" ]; then