diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-08-18 13:07:05 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-08-18 13:07:05 -0700 |
| commit | fddd8b4801b51234b2dd525c35d74e2a578638fd (patch) | |
| tree | f4cca8b4be992f194265603b2bee0ca28b4be6b4 /Documentation | |
| parent | 9b9445cfdec254dfd5e78fb00ec4476cee3d578c (diff) | |
| parent | 9096451acdf065c3dbcf609dcefe51cd68aa5d1e (diff) | |
| download | git-fddd8b4801b51234b2dd525c35d74e2a578638fd.tar.xz | |
Merge branch 'll/disk-usage-humanise'
"git rev-list --disk-usage" learned to take an optional value
"human" to show the reported value in human-readable format, like
"3.40MiB".
* ll/disk-usage-humanise:
rev-list: support human-readable output for `--disk-usage`
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/rev-list-options.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt index 195e74eec6..bd08d18576 100644 --- a/Documentation/rev-list-options.txt +++ b/Documentation/rev-list-options.txt @@ -242,6 +242,7 @@ ifdef::git-rev-list[] to `/dev/null` as the output does not have to be formatted. --disk-usage:: +--disk-usage=human:: Suppress normal output; instead, print the sum of the bytes used for on-disk storage by the selected commits or objects. This is equivalent to piping the output into `git cat-file @@ -249,6 +250,8 @@ ifdef::git-rev-list[] faster (especially with `--use-bitmap-index`). See the `CAVEATS` section in linkgit:git-cat-file[1] for the limitations of what "on-disk storage" means. + With the optional value `human`, on-disk storage size is shown + in human-readable string(e.g. 12.24 Kib, 3.50 Mib). endif::git-rev-list[] --cherry-mark:: |
