aboutsummaryrefslogtreecommitdiff
path: root/Documentation/technical
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-04-19 13:31:26 -0700
committerJunio C Hamano <gitster@pobox.com>2013-04-19 13:31:27 -0700
commitd7bffe9fb63185fbac6f4f41e9fb760b4f230a7d (patch)
tree6353306a475ac8f5eba346055207e6378607241a /Documentation/technical
parent4059da335240ab35da6ee9d6f73346eba28fdfc7 (diff)
parent1918225d2fce49c830b41b8c7907229638ae2825 (diff)
downloadgit-d7bffe9fb63185fbac6f4f41e9fb760b4f230a7d.tar.gz
git-d7bffe9fb63185fbac6f4f41e9fb760b4f230a7d.tar.xz
Merge branch 'ap/strbuf-humanize'
Teach "--human-readable" aka "-H" option to "git count-objects" to show various large numbers in Ki/Mi/GiB scaled as necessary. * ap/strbuf-humanize: count-objects: add -H option to humanize sizes strbuf: create strbuf_humanise_bytes() to show byte sizes
Diffstat (limited to 'Documentation/technical')
-rw-r--r--Documentation/technical/api-strbuf.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/technical/api-strbuf.txt b/Documentation/technical/api-strbuf.txt
index 2c59cb225..3350d97dd 100644
--- a/Documentation/technical/api-strbuf.txt
+++ b/Documentation/technical/api-strbuf.txt
@@ -230,6 +230,11 @@ which can be used by the programmer of the callback as she sees fit.
destination. This is useful for literal data to be fed to either
strbuf_expand or to the *printf family of functions.
+`strbuf_humanise_bytes`::
+
+ Append the given byte size as a human-readable string (i.e. 12.23 KiB,
+ 3.50 MiB).
+
`strbuf_addf`::
Add a formatted string to the buffer.