diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-08-01 15:04:21 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-08-02 22:34:45 -0700 |
| commit | f3a303aef017ad6e53fa44643d832a1fa0de0d91 (patch) | |
| tree | e71af91cf31ed40a46758817717ad61258f990f6 /t/unit-tests/u-string-list.c | |
| parent | 576454974165d51b7e39c0608cde1c84978f1a8a (diff) | |
diff: simplify parsing of diff.colormovedws
The code to parse this configuration variable, whose value is a
comma-separated list of known tokens like "ignore-space-change" and
"ignore-all-space", uses string_list_split() to split the value into
pieces, and then places each piece of string in a strbuf to trim,
before comparing the result with the list of known tokens.
Thanks to the previous steps, now string_list_split() can trim the
resulting pieces before it places them in the string list. Use it
to simplify the code.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/u-string-list.c')
0 files changed, 0 insertions, 0 deletions
