diff options
author | Junio C Hamano <junkio@cox.net> | 2006-10-22 22:51:42 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-22 22:51:42 -0700 |
commit | 05eb811aa1546b696c6c4d55593cfd4fbef0dce5 (patch) | |
tree | bad8266ba08310f00a1998063c545dd3707fdc3c /git-repack.sh | |
parent | 02a20456d2c5efccbdd0093ad2a16134f160c218 (diff) | |
parent | 2d477051ef260aad352d63fc7d9c07e4ebb4359b (diff) | |
download | git-05eb811aa1546b696c6c4d55593cfd4fbef0dce5.tar.gz git-05eb811aa1546b696c6c4d55593cfd4fbef0dce5.tar.xz |
Merge branch 'np/pack'
* np/pack:
add the capability for index-pack to read from a stream
index-pack: compare only the first 20-bytes of the key.
git-repack: repo.usedeltabaseoffset
pack-objects: document --delta-base-offset option
allow delta data reuse even if base object is a preferred base
zap a debug remnant
let the GIT native protocol use offsets to delta base when possible
make pack data reuse compatible with both delta types
make git-pack-objects able to create deltas with offset to base
teach git-index-pack about deltas with offset to base
teach git-unpack-objects about deltas with offset to base
introduce delta objects with offset to base
Diffstat (limited to 'git-repack.sh')
-rwxr-xr-x | git-repack.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/git-repack.sh b/git-repack.sh index f2c9071d1..17e24526c 100755 --- a/git-repack.sh +++ b/git-repack.sh @@ -3,7 +3,7 @@ # Copyright (c) 2005 Linus Torvalds # -USAGE='[-a] [-d] [-f] [-l] [-n] [-q]' +USAGE='[-a] [-d] [-f] [-l] [-n] [-q] [--window=N] [--depth=N]' SUBDIRECTORY_OK='Yes' . git-sh-setup @@ -25,6 +25,15 @@ do shift done +# Later we will default repack.UseDeltaBaseOffset to true +default_dbo=false + +case "`git repo-config --bool repack.usedeltabaseoffset || + echo $default_dbo`" in +true) + extra="$extra --delta-base-offset" ;; +esac + PACKDIR="$GIT_OBJECT_DIRECTORY/pack" PACKTMP="$GIT_DIR/.tmp-$$-pack" rm -f "$PACKTMP"-* |