Commit b6967c3
committed
attr_file: refactor stripping of trailing spaces
The stripping of trailing spaces currently happens as part of
`git_attr_fnmatch__parse`. As we aren't currently parsing
trailing whitespaces correct in case they're escaped, we'll have
to change that code, though. To make actual behavioural change
easier to review, refactor the code up-front by pulling it out
into its own function that is expected to retain the exact same
functionality as before. Like this, the fix will be trivial to
apply.1 parent b1795e0 commit b6967c3
1 file changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
562 | 575 | | |
563 | 576 | | |
564 | 577 | | |
| |||
646 | 659 | | |
647 | 660 | | |
648 | 661 | | |
649 | | - | |
650 | | - | |
651 | | - | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
652 | 666 | | |
653 | 667 | | |
654 | 668 | | |
| |||
0 commit comments