Commit aa42e87
git-gui: break out a separate function git_read_nice
There are two callers of git_read that request special treatment using
option --nice. Rewrite them to call a new function git_read_nice that
does the special treatment. Now we can remove all option treatment from
git_read.
git_write has the same capability, but there are no callers that
request --nice. Remove the feature without substitution.
This is a preparation for a later change where we want to make git_read
and friends non-variadic. Then it cannot have optional arguments.
Signed-off-by: Johannes Sixt <[email protected]>
Signed-off-by: Taylor Blau <[email protected]>1 parent 23ba432 commit aa42e87
3 files changed
+11
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
| 646 | + | |
| 647 | + | |
653 | 648 | | |
654 | | - | |
655 | | - | |
656 | | - | |
| 649 | + | |
| 650 | + | |
657 | 651 | | |
658 | | - | |
| 652 | + | |
| 653 | + | |
659 | 654 | | |
660 | | - | |
661 | | - | |
| 655 | + | |
662 | 656 | | |
663 | 657 | | |
664 | 658 | | |
| |||
667 | 661 | | |
668 | 662 | | |
669 | 663 | | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | 664 | | |
688 | 665 | | |
689 | 666 | | |
690 | | - | |
691 | | - | |
| 667 | + | |
| 668 | + | |
692 | 669 | | |
693 | 670 | | |
694 | 671 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
| 620 | + | |
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| |||
0 commit comments