]> git.ipfire.org Git - thirdparty/git.git/commit - t/t7610-mergetool.sh
t: use test_write_lines() instead of series of 'echo' commands
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 2 Jul 2018 00:23:42 +0000 (20:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jul 2018 19:38:04 +0000 (12:38 -0700)
commit0590ff26c406204281262c2753b3b92aa07f59c7
tree59857964cf6ade6e1600e150e795e3ae4d347210
parent83279748594cf1c7a38ebf518cd6b63cd3d8de37
t: use test_write_lines() instead of series of 'echo' commands

These tests employ a noisy subshell (with missing &&-chain) to feed
input into Git commands or files:

    (echo a; echo b; echo c) | git some-command ...

Simplify by taking advantage of test_write_lines():

    test_write_lines a b c | git some-command ...

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0090-cache-tree.sh
t/t1008-read-tree-overlay.sh
t/t2016-checkout-patch.sh
t/t3404-rebase-interactive.sh
t/t3701-add-interactive.sh
t/t3904-stash-patch.sh
t/t7105-reset-patch.sh
t/t7301-clean-interactive.sh
t/t7501-commit.sh
t/t7610-mergetool.sh