Skip to content

Commit fcf31da

Browse files
peffgitster
authored andcommitted
pack-redundant: document deprecation
Running the command itself has generated a warning for several versions, which has recently been upgraded to an error. Let's also make sure the documentation mentions what is going on. This also gives us a good spot to explain the reasoning and recommend alternatives. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8d90352 commit fcf31da

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Documentation/git-pack-redundant.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ SYNOPSIS
1111
[verse]
1212
'git pack-redundant' [--verbose] [--alt-odb] (--all | <pack-filename>...)
1313

14+
WARNING
15+
-------
16+
`git pack-redundant` has been deprecated and is scheduled for removal in
17+
a future version of Git. Because it can only remove entire duplicate
18+
packs and not individual duplicate objects, it is generally not a useful
19+
tool for reducing repository size. You are better off using `git gc` to
20+
do so, which will put objects into a new pack, removing duplicates.
21+
22+
Running `pack-redundant` without the `--i-still-use-this` flag will fail
23+
in this release. If you believe you have a use case for which
24+
`pack-redundant` is better suited and oppose this removal, please
25+
contact the Git mailing list at [email protected]. More information
26+
about the list is available at https://git-scm.com/community.
27+
1428
DESCRIPTION
1529
-----------
1630
This program computes which packs in your repository

0 commit comments

Comments
 (0)