path: root/Documentation
diff options
authorJeff King <>2016-10-03 20:36:18 (GMT)
committerJunio C Hamano <>2016-10-10 20:52:37 (GMT)
commit5fe849d651e259af58f29f9cfb1b1405154ffacc (patch)
tree2db0fc624b89d513744ffa04c7faa18009dd1d93 /Documentation
parentf7b7774f34b86fed8a2e9554a9fe865c62a0a5eb (diff)
count-objects: report alternates via verbose mode
There's no way to get the list of alternates that git computes internally; our tests only infer it based on which objects are available. In addition to testing, knowing this list may be helpful for somebody debugging their alternates setup. Let's add it to the "count-objects -v" output. We could give it a separate flag, but there's not really any need. "count-objects -v" is already a debugging catch-all for the object database, its output is easily extensible to new data items, and printing the alternates is not expensive (we already had to find them to count the objects). Signed-off-by: Jeff King <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation')
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-count-objects.txt b/Documentation/git-count-objects.txt
index 2ff3568..cb9b4d2 100644
--- a/Documentation/git-count-objects.txt
+++ b/Documentation/git-count-objects.txt
@@ -38,6 +38,11 @@ objects nor valid packs
size-garbage: disk space consumed by garbage files, in KiB (unless -H is
+alternate: absolute path of alternate object databases; may appear
+multiple times, one line per path. Note that if the path contains
+non-printable characters, it may be surrounded by double-quotes and
+contain C-style backslashed escape sequences.