This new option makes the resulting pack express the delta base with more compact "offset" format. Signed-off-by: Junio C Hamano <junkio@xxxxxxx> --- 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html