]> granicus.if.org Git - git/commit
t7610-mergetool: do not place pipelines headed by `yes` in subshells
authorJohannes Sixt <j6t@kdbg.org>
Mon, 10 Jun 2019 08:58:58 +0000 (10:58 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Jun 2019 17:22:53 +0000 (10:22 -0700)
commitb4a04c8f7c4f98dd335dc5ee00059bcd6cfc8b53
tree4447cf93c9c5aea340d1db73c8f15d845aeafb4f
parentb697d92f56511e804b8ba20ccbe7bdc85dc66810
t7610-mergetool: do not place pipelines headed by `yes` in subshells

Subshells for pipelines are not required. This can save a number of
processes (if the shell does not optimize it away anyway).

The patch was generated with the command

   sed -i 's/( *\(yes.*[^ ]\) *) *\&\&/\1 \&\&/' t7610-mergetool.sh

with a manual fixup of the case having no && at the end.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7610-mergetool.sh