Skip to content

add strbuf_set operations

Jeremiah Mahler git 3 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 13 repliesIn review
  2. v219 patches 8 repliesSuperseded
  3. v15 patches 6 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2add strbuf_set operationsDocumentation/technical/api-strbuf.txt strbuf.c strbuf.h+52 -012 replies
2/2builtin/remote: improve readability via strbuf_set()builtin/remote.c+23 -401 reply

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] add strbuf_set operations

Addition of strbuf_set operations, version 3.

Includes suggestions from Eric Sunshine [1]:

- Revise log message to better argue why this patch is worthwhile.

- Avoid documentation redundancy: "Setting buffer", "Replace buffer".

- Remove unnecessary changes which didn't have a significant benefit to avoid unnecessary "code churn". builtin/remote.c was the one file which showed a significant benefit. Others with negligible benefits have been left as is.

The possible performance improvements using a strbuf_grow_to() operation as suggested by Michael Haggerty [2] has been left for a later patch.

[1]: http://marc.info/?l=git&m=140247618416057&w=2

[2]: http://marc.info/?l=git&m=140248834420244&w=2

Jeremiah Mahler (2):
add strbuf_set operations
builtin/remote: improve readability via strbuf_set()

 Documentation/technical/api-strbuf.txt | 18 ++++++++++
 builtin/remote.c                       | 63 +++++++++++++---------------------
 strbuf.c                               | 21 ++++++++++++
 strbuf.h                               | 13 +++++++
 4 files changed, 75 insertions(+), 40 deletions(-)
Signature · 1 line
2.0.0