diff options
| author | Junio C Hamano <gitster@pobox.com> | 2013-04-19 13:31:26 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2013-04-19 13:31:27 -0700 |
| commit | d7bffe9fb63185fbac6f4f41e9fb760b4f230a7d (patch) | |
| tree | 6353306a475ac8f5eba346055207e6378607241a /strbuf.h | |
| parent | 4059da335240ab35da6ee9d6f73346eba28fdfc7 (diff) | |
| parent | 1918225d2fce49c830b41b8c7907229638ae2825 (diff) | |
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 'strbuf.h')
| -rw-r--r-- | strbuf.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -170,6 +170,7 @@ extern int strbuf_check_branch_ref(struct strbuf *sb, const char *name); extern void strbuf_addstr_urlencode(struct strbuf *, const char *, int reserved); +extern void strbuf_humanise_bytes(struct strbuf *buf, off_t bytes); __attribute__((format (printf,1,2))) extern int printf_ln(const char *fmt, ...); |
