git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] repack: document there is no need to avoid delta-base-offset

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 19, 2022, 21:48 UTC
Message-ID
<xmqqbktk93kl.fsf_-_@gitster.g>
In-Reply-To
<220719.8635exwje8.gmgdl@evledraar.gmail.com>

As continued use of 1.4.4 by people stopped being an issue long time ago, we can safely remove the warning about interoperability that we added in 1.6.0 when the use of delta-base-offset has become default.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 * Instead of outright removing, it probably is a good idea to hint
   the reason why the now seemingly useless configuration variable
   is there, perhaps.
 Documentation/git-repack.txt | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
diff --git c/Documentation/git-repack.txt w/Documentation/git-repack.txt
index 0bf13893d8..882904fc7b 100644
--- c/Documentation/git-repack.txt
+++ w/Documentation/git-repack.txt
@@ -218,15 +218,11 @@ CONFIGURATION
 Various configuration variables affect packing, see
 linkgit:git-config[1] (search for "pack" and "delta").
 
-By default, the command passes `--delta-base-offset` option to
-'git pack-objects'; this typically results in slightly smaller packs,
-but the generated packs are incompatible with versions of Git older than
-version 1.4.4. If you need to share your repository with such ancient Git
-versions, either directly or via the dumb http protocol, then you
-need to set the configuration variable `repack.UseDeltaBaseOffset` to
-"false" and repack. Access from old Git versions over the native protocol
-is unaffected by this option as the conversion is performed on the fly
-as needed in that case.
+By default, the command passes `--delta-base-offset` option to 'git
+pack-objects', which results in packs smaller by a few per-cent.
+The configuration variable `repack.UseDeltaBaseOffset` can be set to
+`false` to disable it, but these days there hardly is any reason to
+do so.
 
 Delta compression is not used on objects larger than the
 `core.bigFileThreshold` configuration variable and on files with the
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 8 of 11 in “git-repack doc: remove discussion of ancient caveat”
  1. git-repack doc: remove discussion of ancient caveatÆvar Arnfjörð Bjarmason, Jul 15, 2022
  2. Junio C HamanoJul 15, 2022
  3. Ævar Arnfjörð BjarmasonJul 16, 2022
  4. Junio C HamanoJul 18, 2022
  5. Ævar Arnfjörð BjarmasonJul 18, 2022
  6. Junio C HamanoJul 19, 2022
  7. Ævar Arnfjörð BjarmasonJul 19, 2022
  8. repack: document there is no need to avoid delta-base-offsetJunio C Hamano, Jul 19, 2022
  9. Ævar Arnfjörð BjarmasonJul 19, 2022
  10. Junio C HamanoJul 19, 2022
  11. docs: remove pre-v1.6.0 "repack --delta-base-offset" docsÆvar Arnfjörð Bjarmason, Jul 19, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.