repack: document --unpack-unreachable option
authorJeff King <peff@peff.net>
Mon, 13 Jun 2016 04:33:54 +0000 (00:33 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Jun 2016 20:57:38 +0000 (13:57 -0700)
This was added back in 7e52f56 (gc: do not explode objects
which will be immediately pruned, 2012-04-07), but not
documented at the time, since it was an internal detail
between git-gc and git-repack. However, as people with
complicated setups may want to effectively reimplement the
steps of git-gc themselves, it is nice for us to document
these interfaces.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-repack.txt
index b9c02ce48134dd44b05053275ec4b219f3999091..cde7b4441d5dcc7d926731cd46fe37f5bfbc430e 100644 (file)
@@ -128,6 +128,12 @@ other objects in that pack they already have locally.
        with `-b` or `repack.writeBitmaps`, as it ensures that the
        bitmapped packfile has the necessary objects.
 
+--unpack-unreachable=<when>::
+       When loosening unreachable objects, do not bother loosening any
+       objects older than `<when>`. This can be used to optimize out
+       the write of any objects that would be immediately pruned by
+       a follow-up `git prune`.
+
 Configuration
 -------------