Skip to content

Commit 9018af4

Browse files
committed
Merge branch 'jk/repack-reuse-object'
* jk/repack-reuse-object: Documentation: pack.compression: explain how to recompress repack: add -F flag to let user choose between --no-reuse-delta/object
2 parents 4ac9aeb + 89d71f7 commit 9018af4

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

Documentation/config.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,6 +1472,10 @@ pack.compression::
14721472
not set, defaults to -1, the zlib default, which is "a default
14731473
compromise between speed and compression (currently equivalent
14741474
to level 6)."
1475+
+
1476+
Note that changing the compression level will not automatically recompress
1477+
all existing objects. You can force recompression by passing the -F option
1478+
to linkgit:git-repack[1].
14751479

14761480
pack.deltaCacheSize::
14771481
The maximum memory in bytes used for caching deltas in

Documentation/git-repack.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git-repack - Pack unpacked objects in a repository
88

99
SYNOPSIS
1010
--------
11-
'git repack' [-a] [-A] [-d] [-f] [-l] [-n] [-q] [--window=N] [--depth=N]
11+
'git repack' [-a] [-A] [-d] [-f] [-F] [-l] [-n] [-q] [--window=N] [--depth=N]
1212

1313
DESCRIPTION
1414
-----------
@@ -62,6 +62,10 @@ other objects in that pack they already have locally.
6262
linkgit:git-pack-objects[1].
6363

6464
-f::
65+
Pass the `--no-reuse-delta` option to `git-pack-objects`, see
66+
linkgit:git-pack-objects[1].
67+
68+
-F::
6569
Pass the `--no-reuse-object` option to `git-pack-objects`, see
6670
linkgit:git-pack-objects[1].
6771

git-repack.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ git repack [options]
1010
a pack everything in a single pack
1111
A same as -a, and turn unreachable objects loose
1212
d remove redundant packs, and run git-prune-packed
13-
f pass --no-reuse-object to git-pack-objects
13+
f pass --no-reuse-delta to git-pack-objects
14+
F pass --no-reuse-object to git-pack-objects
1415
n do not run git-update-server-info
1516
q,quiet be quiet
1617
l pass --local to git-pack-objects
@@ -34,7 +35,8 @@ do
3435
unpack_unreachable=--unpack-unreachable ;;
3536
-d) remove_redundant=t ;;
3637
-q) GIT_QUIET=t ;;
37-
-f) no_reuse=--no-reuse-object ;;
38+
-f) no_reuse=--no-reuse-delta ;;
39+
-F) no_reuse=--no-reuse-object ;;
3840
-l) local=--local ;;
3941
--max-pack-size|--window|--window-memory|--depth)
4042
extra="$extra $1=$2"; shift ;;

0 commit comments

Comments
 (0)