diff options
| author | Johannes Sixt <j6t@kdbg.org> | 2019-06-12 18:33:46 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-06-12 13:20:56 -0700 |
| commit | e10dffd067002ea83c5293c9440adc5f23825110 (patch) | |
| tree | 6f93c1df01a1729fdd2800691fc3dd1a5ac35182 /commit.c | |
| parent | t7610-mergetool: do not place pipelines headed by `yes` in subshells (diff) | |
| download | git-e10dffd067002ea83c5293c9440adc5f23825110.tar.gz git-e10dffd067002ea83c5293c9440adc5f23825110.zip | |
t7610-mergetool: use test_cmp instead of test $(cat file) = $txt
Fix that anti-pattern by a sequence of echo and test_cmp.
The patch was generated with this command:
sed -i -e '/test.*(cat/s/^\(\t*\)test "..cat \(.*\))" = \(".*"\)\(.*\)/\1echo \3 >expect \&\&\n\1test_cmp expect \2\4/' t7610-mergetool.sh
This helps on Windows, where test_cmp avoids spawning a process when
there is no difference.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
