summaryrefslogtreecommitdiff
path: root/t/t0041-usage.sh
diff options
context:
space:
mode:
authorLibravatar Denton Liu <liu.denton@gmail.com>2019-10-23 16:32:31 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-10-24 11:32:53 +0900
commitb0069684d430ea67fd3fbe019c71a18d4ef87fa3 (patch)
tree4f019ee589f7d9da4b0944f67a8dee88fee82057 /t/t0041-usage.sh
parentt4108: replace create_file with test_write_lines (diff)
downloadtgif-b0069684d430ea67fd3fbe019c71a18d4ef87fa3.tar.xz
t4108: remove git command upstream of pipe
Before, the output of `git diff HEAD` would always be piped to sanitize_conflicted_diff(). However, since the Git command was upstream of the pipe, in case the Git command fails, the return code would be lost. Rewrite into separate statements so that the return code is no longer lost. Since only the command `git diff HEAD` was being piped to sanitize_conflicted_diff(), move the command into the function and rename it to print_sanitized_conflicted_diff(). Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0041-usage.sh')
0 files changed, 0 insertions, 0 deletions