Skip to content

strbuf: add and use strbuf_add_uint()

René Scharfe git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4strbuf: add strbuf_add_uint()strbuf.c strbuf.h+18 -09 replies
2/4cat-file: use strbuf_add_uint()builtin/cat-file.c+2 -21 reply
3/4ls-files: use strbuf_add_uint()builtin/ls-files.c+9 -63 replies
4/4ls-tree: use strbuf_add_uint()builtin/ls-tree.c+9 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] strbuf: add and use strbuf_add_uint()

Add a function that does the same as strbuf_addf(sb, "%"PRIuMAX, value), only faster, and use it to speed up bulk reporting of size values a bit.

strbuf: add strbuf_add_uint()
cat-file: use strbuf_add_uint()
ls-files: use strbuf_add_uint()
ls-tree: use strbuf_add_uint()

 builtin/cat-file.c |  4 ++--
 builtin/ls-files.c | 15 +++++++++------
 builtin/ls-tree.c  | 15 +++++++++------
 strbuf.c           | 12 ++++++++++++
 strbuf.h           |  6 ++++++
 5 files changed, 38 insertions(+), 14 deletions(-)
Signature · 1 line
2.54.0