Commit 63b09db
committed
merge-tree: remove redundant code
real_merge() only ever returns "0" or "1" as it dies if the merge status
is less than zero. Therefore the check for "result < 0" is redundant and
the result variable is not needed. The return value of real_merge() is
ignored because exit status of "git merge-tree --stdin" is "0" for both
successful and conflicted merges (the status of each merge is written to
stdout). The return type of real_merge() is not changed as it is used
for the program's exit status when "--stdin" is not given.
Signed-off-by: Phillip Wood <[email protected]>1 parent 3b31797 commit 63b09db
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | 604 | | |
606 | 605 | | |
607 | 606 | | |
| |||
618 | 617 | | |
619 | 618 | | |
620 | 619 | | |
621 | | - | |
| 620 | + | |
622 | 621 | | |
623 | | - | |
| 622 | + | |
624 | 623 | | |
625 | 624 | | |
626 | 625 | | |
627 | 626 | | |
628 | 627 | | |
629 | | - | |
630 | | - | |
631 | 628 | | |
632 | 629 | | |
633 | 630 | | |
| |||
0 commit comments