commit-tree: do not complete line in -F input
commitc818e743325e5710dbf2071b769fbcbc3b50a9e0
authorRoss Kabus <rkabus@aerotech.com>
Thu, 7 Sep 2017 14:41:11 +0000 (7 10:41 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 10 Sep 2017 07:29:53 +0000 (10 16:29 +0900)
tree0ef3e0b07d169a776006b4ef6dfdfd192a78aeee
parentedc74bc7f0c6884027e851ef09b2e0c9380dcd45
commit-tree: do not complete line in -F input

"git commit-tree -F <file>", unlike "cat <file> | git
commit-tree" (i.e. feeding the same contents from the standard
input), added a missing final newline when the input ended in an
incomplete line.

Correct this inconsistency by leaving the incomplete line as-is,
as erring on the side of not touching the input is preferrable
and expected for a plumbing command like "commit-tree".

Signed-off-by: Ross Kabus <rkabus@aerotech.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit-tree.c