]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jc/strbuf-split'
authorJunio C Hamano <gitster@pobox.com>
Thu, 21 Aug 2025 20:47:00 +0000 (13:47 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Aug 2025 20:47:00 +0000 (13:47 -0700)
Arrays of strbuf is often a wrong data structure to use, and
strbuf_split*() family of functions that create them often have
better alternatives.

Update several code paths and replace strbuf_split*().

* jc/strbuf-split:
  trace2: do not use strbuf_split*()
  trace2: trim_trailing_newline followed by trim is a no-op
  sub-process: do not use strbuf_split*()
  environment: do not use strbuf_split*()
  config: do not use strbuf_split()
  notes: do not use strbuf_split*()
  merge-tree: do not use strbuf_split*()
  clean: do not use strbuf_split*() [part 2]
  clean: do not pass the whole structure when it is not necessary
  clean: do not use strbuf_split*() [part 1]
  clean: do not pass strbuf by value
  wt-status: avoid strbuf_split*()

1  2 
builtin/clean.c
builtin/merge-tree.c
builtin/notes.c
config.c
environment.c
wt-status.c

diff --cc builtin/clean.c
Simple merge
Simple merge
diff --cc builtin/notes.c
Simple merge
diff --cc config.c
Simple merge
diff --cc environment.c
Simple merge
diff --cc wt-status.c
Simple merge