{"thread":{"id":"14139","subject":"[PATCH] repack.usedeltabaseoffset config option now defaults to \"true\"","startedAt":"2008-06-25T04:24:53Z","lastAt":"2008-06-25T04:24:53Z","messageCount":1,"participants":["Nicolas Pitre"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"81056","messageId":"alpine.LFD.1.10.0806250023500.2979@xanadu.home","threadId":"14139","inReplyTo":null,"subject":"[PATCH] repack.usedeltabaseoffset config option now defaults to \"true\"","fromName":"Nicolas Pitre","fromEmail":"nico@cam.org","sentAt":"2008-06-25T04:24:53Z","receivedAt":"2008-06-25T04:24:53Z","isPatch":true,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"\nAs announced for 1.6.0.\n\nAccess over the native protocol by old git versions is unaffected as\nthis capability is negociated by the protocol.  Otherwise setting this\nconfig option to \"false\" and doing a 'git repack -a -d' is enough to\nremain compatible with ancient git versions (older than 1.4.4).\n\nSigned-off-by: Nicolas Pitre <nico@cam.org>\n---\n Documentation/config.txt |   10 +++++++---\n git-repack.sh            |    6 +-----\n 2 files changed, 8 insertions(+), 8 deletions(-)\n\ndiff --git a/Documentation/config.txt b/Documentation/config.txt\nindex 1e09a57..c7fbc63 100644\n--- a/Documentation/config.txt\n+++ b/Documentation/config.txt\n@@ -996,9 +996,13 @@ remotes.<group>::\n \t<group>\".  See linkgit:git-remote[1].\n \n repack.usedeltabaseoffset::\n-\tAllow linkgit:git-repack[1] to create packs that uses\n-\tdelta-base offset.  Defaults to false.\n-\n+\tBy default, linkgit:git-repack[1] creates packs that use\n+\tdelta-base offset. If you need to share your repository with\n+\tgit older than version 1.4.4, either directly or via a dumb\n+\tprotocol such as http, then you need to set this option to\n+\t\"false\" and repack. Access from old git versions over the\n+\tnative protocol are unaffected by this option.\n+\t \n show.difftree::\n \tThe default linkgit:git-diff-tree[1] arguments to be used\n \tfor linkgit:git-show[1].\ndiff --git a/git-repack.sh b/git-repack.sh\nindex 072d1b4..8c3bc13 100755\n--- a/git-repack.sh\n+++ b/git-repack.sh\n@@ -44,11 +44,7 @@ do\n \tshift\n done\n \n-# Later we will default repack.UseDeltaBaseOffset to true\n-default_dbo=false\n-\n-case \"`git config --bool repack.usedeltabaseoffset ||\n-       echo $default_dbo`\" in\n+case \"`git config --bool repack.usedeltabaseoffset || echo true`\" in\n true)\n \textra=\"$extra --delta-base-offset\" ;;\n esac\n-- \n1.5.6.56.g29b0d\n"}]}