]> git.ipfire.org Git - thirdparty/git.git/commit
t4301: emit blank line in more idiomatic fashion
authorEric Sunshine <sunshine@sunshineco.com>
Sun, 28 Aug 2022 05:17:59 +0000 (05:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Aug 2022 16:28:40 +0000 (09:28 -0700)
commit3871bdb7e40cc9a91d2cce58e2f5c49313521dc4
treed7f1f0fd7bb8270a1d249a8a3d20ff9452e93d74
parent87ed97167a1b1bce41e0380ec6a9507876015e89
t4301: emit blank line in more idiomatic fashion

The unusual use of:

    printf "\\n" >>file &&

may give readers pause, making them wonder why this form was chosen over
the more typical:

    printf "\n" >>file &&

However, even that may give pause since it is a somewhat unusual and
long-winded way of saying:

    echo >>file &&

Therefore, replace `printf` with the more idiomatic `echo`, with the
hope of eliminating a possible stumbling block for those reading the
code.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4301-merge-tree-write-tree.sh