aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-repo.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/git-repo.adoc')
-rw-r--r--Documentation/git-repo.adoc44
1 files changed, 30 insertions, 14 deletions
diff --git a/Documentation/git-repo.adoc b/Documentation/git-repo.adoc
index ce43cb19c8..42262c1983 100644
--- a/Documentation/git-repo.adoc
+++ b/Documentation/git-repo.adoc
@@ -8,8 +8,9 @@ git-repo - Retrieve information about the repository
SYNOPSIS
--------
[synopsis]
-git repo info [--format=(keyvalue|nul)] [-z] [<key>...]
-git repo structure [--format=(table|keyvalue|nul)]
+git repo info [--format=(lines|nul) | -z] [--all | <key>...]
+git repo info --keys [--format=(lines|nul) | -z]
+git repo structure [--format=(table|lines|nul) | -z]
DESCRIPTION
-----------
@@ -19,38 +20,51 @@ THIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE.
COMMANDS
--------
-`info [--format=(keyvalue|nul)] [-z] [<key>...]`::
+`info [--format=(lines|nul) | -z] [--all | <key>...]`::
Retrieve metadata-related information about the current repository. Only
the requested data will be returned based on their keys (see "INFO KEYS"
section below).
+
The values are returned in the same order in which their respective keys were
-requested.
+requested. The `--all` flag requests the values for all the available keys.
+
The output format can be chosen through the flag `--format`. Two formats are
supported:
+
-`keyvalue`:::
- output key-value pairs one per line using the `=` character as
+
+`lines`:::
+ Output key-value pairs one per line using the `=` character as
the delimiter between the key and the value. Values containing "unusual"
characters are quoted as explained for the configuration variable
`core.quotePath` (see linkgit:git-config[1]). This is the default.
`nul`:::
- similar to `keyvalue`, but using a newline character as the delimiter
- between the key and the value and using a NUL character after each value.
+ Similar to `lines`, but using a newline character as the delimiter
+ between the key and the value and using a _NUL_ character after each value.
This format is better suited for being parsed by another applications than
- `keyvalue`. Unlike in the `keyvalue` format, the values are never quoted.
+ `lines`. Unlike in the `lines` format, the values are never quoted.
+
`-z` is an alias for `--format=nul`.
-`structure [--format=(table|keyvalue|nul)]`::
+`info --keys [--format=(lines|nul) | -z]`::
+ List all the available keys, one per line. The output format can be chosen
+ through the flag `--format`. The following formats are supported:
++
+`lines`:::
+ Output the keys one per line. This is the default.
+
+`nul`:::
+ Similar to `lines`, but using a _NUL_ character after each value.
+
+`structure [--format=(table|lines|nul) | -z]`::
Retrieve statistics about the current repository structure. The
following kinds of information are reported:
+
* Reference counts categorized by type
* Reachable object counts categorized by type
-
+* Total inflated size of reachable objects by type
+* Total disk size of reachable objects by type
+* Largest reachable objects in the repository by type
+
The output format can be chosen through the flag `--format`. Three formats are
supported:
@@ -60,18 +74,20 @@ supported:
change and is not intended for machine parsing. This is the default
format.
-`keyvalue`:::
+`lines`:::
Each line of output contains a key-value pair for a repository stat.
The '=' character is used to delimit between the key and the value.
Values containing "unusual" characters are quoted as explained for the
configuration variable `core.quotePath` (see linkgit:git-config[1]).
`nul`:::
- Similar to `keyvalue`, but uses a NUL character to delimit between
+ Similar to `lines`, but uses a _NUL_ character to delimit between
key-value pairs instead of a newline. Also uses a newline character as
the delimiter between the key and value instead of '='. Unlike the
- `keyvalue` format, values containing "unusual" characters are never
+ `lines` format, values containing "unusual" characters are never
quoted.
++
+`-z` is an alias for `--format=nul`.
INFO KEYS
---------