repack.usedeltabaseoffset config option now defaults to "true"
As announced for 1.6.0. Access over the native protocol by old git versions is unaffected as this capability is negociated by the protocol. Otherwise setting this config option to "false" and doing a 'git repack -a -d' is enough to remain compatible with ancient git versions (older than 1.4.4). Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nicolas Pitre committed
Jun 25, 2008 at 00:24 UTC
22c79eab2956d7f47ff2495104583a25208565ac
2 files changed
+7
-7
Documentation/config.txt
+6
-2
@@ -996,8 +996,12 @@ remotes.<group>::
996
<group>". See linkgit:git-remote[1].
997
998
repack.usedeltabaseoffset::
999
- Allow linkgit:git-repack[1] to create packs that uses
1000
- delta-base offset. Defaults to false.
999
+ By default, linkgit:git-repack[1] creates packs that use
1000
+ delta-base offset. If you need to share your repository with
1001
+ git older than version 1.4.4, either directly or via a dumb
1002
+ protocol such as http, then you need to set this option to
1003
+ "false" and repack. Access from old git versions over the
1004
+ native protocol are unaffected by this option.
1005
1006
show.difftree::
1007
The default linkgit:git-diff-tree[1] arguments to be used
git-repack.sh
+1
-5
@@ -44,11 +44,7 @@ do
44
shift
45
done
46
47
-# Later we will default repack.UseDeltaBaseOffset to true
48
-default_dbo=false
49
-
50
-case "`git config --bool repack.usedeltabaseoffset ||
51
- echo $default_dbo`" in
47
+case "`git config --bool repack.usedeltabaseoffset || echo true`" in
48
true)
49
extra="$extra --delta-base-offset" ;;
50
esac