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

[PATCH 2/2] git-repack: -b to pass --delta-base-offset

From
Junio C Hamano <junkio@cox.net>
Date
Oct 13, 2006, 05:35 UTC
Message-ID
<11607177024171-git-send-email-junkio@cox.net>
In-Reply-To
<11607177011745-git-send-email-junkio@cox.net>

This new option makes the resulting pack express the delta base with more compact "offset" format.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 Documentation/git-repack.txt |    8 +++++++-
 git-repack.sh                |    1 +
 2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-repack.txt b/Documentation/git-repack.txt
index 49f7e0a..5f5530d 100644
--- a/Documentation/git-repack.txt
+++ b/Documentation/git-repack.txt
@@ -9,7 +9,7 @@ objects into pack files.
 
 SYNOPSIS
 --------
-'git-repack' [-a] [-d] [-f] [-l] [-n] [-q] [--window=N] [--depth=N]
+'git-repack' [-a] [-b] [-d] [-f] [-l] [-n] [-q] [--window=N] [--depth=N]
 
 DESCRIPTION
 -----------
@@ -35,6 +35,12 @@ OPTIONS
 	about people fetching via dumb protocols from it.  Use
 	with '-d'.
 
+-b::
+	Pass the `--delta-base-offset` to `git pack-objects`;
+	see gitlink:git-pack-objects[1].  Do not use this option
+	if you want the repository to be accessible by older
+	versions of git.
+
 -d::
 	After packing, if the newly created packs make some
 	existing packs redundant, remove the redundant packs.
diff --git a/git-repack.sh b/git-repack.sh
index b525fc5..25dae5e 100755
--- a/git-repack.sh
+++ b/git-repack.sh
@@ -14,6 +14,7 @@ do
 	-n)	no_update_info=t ;;
 	-a)	all_into_one=t ;;
 	-d)	remove_redundant=t ;;
+	-b)	extra="$extra --delta-base-offset" ;;
 	-q)	quiet=-q ;;
 	-f)	no_reuse_delta=--no-reuse-delta ;;
 	-l)	local=--local ;;
-- 
1.4.3.rc2.g51ca
Previous: Junio C HamanoNext: Nicolas Pitre
Message 2 of 8 in “pack-objects: document --delta-base-offset option”
  1. 1/2 pack-objects: document --delta-base-offset optionJunio C Hamano, Oct 13, 2006
  2. 2/2 git-repack: -b to pass --delta-base-offsetJunio C Hamano, Oct 13, 2006
  3. Nicolas PitreOct 13, 2006
  4. Jakub NarebskiOct 13, 2006
  5. Junio C HamanoOct 13, 2006
  6. Jakub NarebskiOct 13, 2006
  7. Nicolas PitreOct 13, 2006
  8. Junio C HamanoOct 13, 2006

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.