author | Junio C Hamano <gitster@pobox.com> | |
Wed, 6 Oct 2010 19:11:26 +0000 (12:11 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 6 Oct 2010 19:11:26 +0000 (12:11 -0700) |
* jk/repack-reuse-object:
Documentation: pack.compression: explain how to recompress
repack: add -F flag to let user choose between --no-reuse-delta/object
Documentation: pack.compression: explain how to recompress
repack: add -F flag to let user choose between --no-reuse-delta/object
Documentation/config.txt | patch | blob | history | |
Documentation/git-repack.txt | patch | blob | history | |
git-repack.sh | patch | blob | history |
index e6d74e6ade440a9ea26c4e2f22d54aad6cf6044e..71ddb6c1712e7d042f227069eec8a3083480fe27 100644 (file)
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
not set, defaults to -1, the zlib default, which is "a default
compromise between speed and compression (currently equivalent
to level 6)."
++
+Note that changing the compression level will not automatically recompress
+all existing objects. You can force recompression by passing the -F option
+to linkgit:git-repack[1].
pack.deltaCacheSize::
The maximum memory in bytes used for caching deltas in
index 8c67d1724f705c94fb8faf6801ee2bc7cd459629..9566727f7ad6c1690571f7321f79da951c8c6b50 100644 (file)
SYNOPSIS
--------
-'git repack' [-a] [-A] [-d] [-f] [-l] [-n] [-q] [--window=N] [--depth=N]
+'git repack' [-a] [-A] [-d] [-f] [-F] [-l] [-n] [-q] [--window=N] [--depth=N]
DESCRIPTION
-----------
linkgit:git-pack-objects[1].
-f::
+ Pass the `--no-reuse-delta` option to `git-pack-objects`, see
+ linkgit:git-pack-objects[1].
+
+-F::
Pass the `--no-reuse-object` option to `git-pack-objects`, see
linkgit:git-pack-objects[1].
diff --git a/git-repack.sh b/git-repack.sh
index 1eb3bca352f38ec3807383cc5fff7f7e62731b2b..769baaf7e11277db47f4e897aea82c1581201c6b 100755 (executable)
--- a/git-repack.sh
+++ b/git-repack.sh
a pack everything in a single pack
A same as -a, and turn unreachable objects loose
d remove redundant packs, and run git-prune-packed
-f pass --no-reuse-object to git-pack-objects
+f pass --no-reuse-delta to git-pack-objects
+F pass --no-reuse-object to git-pack-objects
n do not run git-update-server-info
q,quiet be quiet
l pass --local to git-pack-objects
unpack_unreachable=--unpack-unreachable ;;
-d) remove_redundant=t ;;
-q) GIT_QUIET=t ;;
- -f) no_reuse=--no-reuse-object ;;
+ -f) no_reuse=--no-reuse-delta ;;
+ -F) no_reuse=--no-reuse-object ;;
-l) local=--local ;;
--max-pack-size|--window|--window-memory|--depth)
extra="$extra $1=$2"; shift ;;