Skip to content

builtin-branch: use strbuf

Miklos Vajna git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3builtin-branch: use strbuf in delete_branches()builtin-branch.c+4 -40 replies
2/3builtin-branch: use strbuf in fill_tracking_info()builtin-branch.c+8 -100 replies
3/3builtin-branch: use strbuf in rename_branch()builtin-branch.c+21 -183 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/3] builtin-branch: use strbuf

These 3 patches do what's in the subject: use the strbuf API instead of snprintf() / sprintf().

The current risk of writing unallocated memory is low, I think, but still, the return value of these functions were not checked at several places.

Miklos Vajna (3):
builtin-branch: use strbuf in delete_branches()
builtin-branch: use strbuf in fill_tracking_info()
builtin-branch: use strbuf in rename_branch()

 builtin-branch.c |   65 +++++++++++++++++++++++++++--------------------------
 1 files changed, 33 insertions(+), 32 deletions(-)