File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ run_merge_tool () {
221
221
else
222
222
run_diff_cmd " $1 "
223
223
fi
224
+ status=$?
224
225
return $status
225
226
}
226
227
Original file line number Diff line number Diff line change @@ -86,6 +86,11 @@ test_expect_success PERL 'difftool forwards exit code with --trust-exit-code' '
86
86
test_must_fail git difftool -y --trust-exit-code -t error branch
87
87
'
88
88
89
+ test_expect_success PERL ' difftool forwards exit code with --trust-exit-code for built-ins' '
90
+ test_config difftool.vimdiff.path false &&
91
+ test_must_fail git difftool -y --trust-exit-code -t vimdiff branch
92
+ '
93
+
89
94
test_expect_success PERL ' difftool honors difftool.trustExitCode = true' '
90
95
test_config difftool.error.cmd false &&
91
96
test_config difftool.trustExitCode true &&
You can’t perform that action at this time.
0 commit comments