summaryrefslogtreecommitdiff
path: root/t/unit-tests/t-urlmatch-normalization.c
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2025-02-18 16:24:36 +0000
committerJunio C Hamano <gitster@pobox.com>2025-02-18 09:52:39 -0800
commit1b0e5f4499a0c099d99b00a2a6a3edb45ae98660 (patch)
tree4cfd8c00e15ff1028ea4ac8593afb5ffa3f9cafa /t/unit-tests/t-urlmatch-normalization.c
parent344a107b557604d3f958e7bf7ebf0901290c50d5 (diff)
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 <phillip.wood@dunelm.org.uk> Acked-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/t-urlmatch-normalization.c')
0 files changed, 0 insertions, 0 deletions