diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-11 15:16:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-11 15:16:49 -0700 |
commit | ff2ea392f9ffc32fdce168b9325d30a27c397684 (patch) | |
tree | 1de106769e2376edaa435cd8319238a8b5d16f73 /strbuf.h | |
parent | Merge branch 'qn/clone-doc-use-long-form' (diff) | |
parent | l10n: localizable upload progress messages (diff) | |
download | tgif-ff2ea392f9ffc32fdce168b9325d30a27c397684.tar.xz |
Merge branch 'dr/progress-i18n'
Progress messages have been made localizable.
* dr/progress-i18n:
l10n: localizable upload progress messages
Diffstat (limited to 'strbuf.h')
-rw-r--r-- | strbuf.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -373,6 +373,12 @@ void strbuf_addbuf_percentquote(struct strbuf *dst, const struct strbuf *src); void strbuf_humanise_bytes(struct strbuf *buf, off_t bytes); /** + * Append the given byte rate as a human-readable string (i.e. 12.23 KiB/s, + * 3.50 MiB/s). + */ +void strbuf_humanise_rate(struct strbuf *buf, off_t bytes); + +/** * Add a formatted string to the buffer. */ __attribute__((format (printf,2,3))) |