Re: [PATCH v7 4/4] cache-tree: Write updated cache-tree after commit
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 13, 2014, 17:22 UTC
- Message-ID
- <xmqqbnst18dh.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <CAPig+cQpzomDmwVqgDGrP4qC1OujRXu5e1wc=EwX61k_RpLbKg@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 9 quoted lines
>> + (echo p; echo 1; echo; echo s; echo n; echo y; echo q) | git commit --interactive -m foo > > Broken &&-chain. > > Would a printf make this more readable? > > printf "p\n1\n\ns\nn\ny\nq\n" | git commt ... && > > Perhaps not.
But
printf "%s\n" p 1 "" s n y q
is vastly more readable, I would think.
Don't we have test_write_lines which is exactly that, though?