summaryrefslogtreecommitdiff
path: root/builtin/commit-tree.c
diff options
context:
space:
mode:
authorRoss Kabus <rkabus@aerotech.com>2017-09-07 14:41:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-10 07:29:53 (GMT)
commitc818e743325e5710dbf2071b769fbcbc3b50a9e0 (patch)
tree0ef3e0b07d169a776006b4ef6dfdfd192a78aeee /builtin/commit-tree.c
parentedc74bc7f0c6884027e851ef09b2e0c9380dcd45 (diff)
downloadgit-c818e743325e5710dbf2071b769fbcbc3b50a9e0.zip
git-c818e743325e5710dbf2071b769fbcbc3b50a9e0.tar.gz
git-c818e743325e5710dbf2071b769fbcbc3b50a9e0.tar.bz2
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>
Diffstat (limited to 'builtin/commit-tree.c')
-rw-r--r--builtin/commit-tree.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/commit-tree.c b/builtin/commit-tree.c
index a4a923d..c1de41c 100644
--- a/builtin/commit-tree.c
+++ b/builtin/commit-tree.c
@@ -102,7 +102,6 @@ int cmd_commit_tree(int argc, const char **argv, const char *prefix)
if (fd && close(fd))
die_errno("git commit-tree: failed to close '%s'",
argv[i]);
- strbuf_complete_line(&buffer);
continue;
}