Skip to content

Commit 22c79ea

Browse files
Nicolas Pitregitster
authored andcommitted
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>
1 parent 85fe23e commit 22c79ea

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Documentation/config.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,8 +996,12 @@ remotes.<group>::
996996
<group>". See linkgit:git-remote[1].
997997

998998
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.
10011005

10021006
show.difftree::
10031007
The default linkgit:git-diff-tree[1] arguments to be used

git-repack.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@ do
4444
shift
4545
done
4646

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
5248
true)
5349
extra="$extra --delta-base-offset" ;;
5450
esac

0 commit comments

Comments
 (0)