Commit f3a303a
committed
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>1 parent 5764549 commit f3a303a
1 file changed
Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
| 333 | + | |
338 | 334 | | |
339 | | - | |
| 335 | + | |
340 | 336 | | |
341 | | - | |
| 337 | + | |
342 | 338 | | |
343 | | - | |
| 339 | + | |
344 | 340 | | |
345 | | - | |
| 341 | + | |
346 | 342 | | |
347 | 343 | | |
348 | 344 | | |
349 | | - | |
| 345 | + | |
350 | 346 | | |
351 | | - | |
352 | | - | |
353 | 347 | | |
354 | 348 | | |
355 | 349 | | |
| |||
0 commit comments