All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: GIT Mailing List <git@vger.kernel.org>
Cc: Nicolas Pitre <nico@cam.org>
Subject: [PATCH 2/2] git-repack: -b to pass --delta-base-offset
Date: Thu, 12 Oct 2006 22:35:01 -0700
Date: Tue, 10 Oct 2006 01:13:20 -0700	[thread overview]
Message-ID: <11607177024171-git-send-email-junkio@cox.net> (raw)
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

  reply	other threads:[~2006-10-13  5:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-13  5:35 [PATCH 1/2] pack-objects: document --delta-base-offset option Junio C Hamano
2006-10-13  5:35 ` Junio C Hamano [this message]
2006-10-13 13:20   ` [PATCH 2/2] git-repack: -b to pass --delta-base-offset Nicolas Pitre
2006-10-13 13:51     ` Jakub Narebski
2006-10-13 21:22     ` Junio C Hamano
2006-10-13 21:29       ` Jakub Narebski
2006-10-13 21:58       ` Nicolas Pitre
2006-10-13 22:11         ` Junio C Hamano
2006-10-13 18:05   ` Horst H. von Brand
2006-10-13 18:29     ` Nicolas Pitre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11607177024171-git-send-email-junkio@cox.net \
    --to=junkio@cox.net \
    --cc=git@vger.kernel.org \
    --cc=nico@cam.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.