diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-10-23 16:32:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-24 11:32:53 +0900 |
commit | b0069684d430ea67fd3fbe019c71a18d4ef87fa3 (patch) | |
tree | 4f019ee589f7d9da4b0944f67a8dee88fee82057 /t/lib-read-tree.sh | |
parent | t4108: replace create_file with test_write_lines (diff) | |
download | tgif-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/lib-read-tree.sh')
0 files changed, 0 insertions, 0 deletions