summaryrefslogtreecommitdiff
path: root/git-gui/lib/commit.tcl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-07-31 15:54:29 -0700
committerJunio C Hamano <gitster@pobox.com>2025-08-02 22:44:58 -0700
commitdcecac2580ef871186fdc4e9efc87815a4ce4c66 (patch)
tree373c06efb4c488a9510c70106af3b1283cc45bdb /git-gui/lib/commit.tcl
parent566e91049558cf9837e2f760877437b929fbb232 (diff)
config: do not use strbuf_split()
When parsing an old-style GIT_CONFIG_PARAMETERS environment variable, the code parses key=value pairs by splitting them at '=' into an array of strbuf's. As strbuf_split() leaves the delimiter at the end of the split piece, the code has to manually trim it. If we split with string_list_split(), that becomes unnecessary. Retire the use of strbuf_split() from this code path. Note that the max parameter of string_list_split() is of an ergonomically iffy design---it specifies the maximum number of times the function is allowed to split, which means that in order to split a text into up to 2 pieces, you have to pass 1, not 2. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions