From: Junio C Hamano Date: Tue, 19 Sep 2017 01:47:57 +0000 (+0900) Subject: Merge branch 'rk/commit-tree-make-F-verbatim' X-Git-Tag: v2.15.0-rc0~77 X-Git-Url: https://www.git.lorimer.id.au/gitweb.git/diff_plain/4d46bce6b07b8047aad2726e5dc42edcc6787d6b?hp=d811ba1897b723fd0146875201061e3603c16391 Merge branch 'rk/commit-tree-make-F-verbatim' Unlike "git commit-tree < file", "git commit-tree -F file" did not pass the contents of the file verbatim and instead completed an incomplete line at the end, if exists. The latter has been updated to match the behaviour of the former. * rk/commit-tree-make-F-verbatim: commit-tree: do not complete line in -F input --- diff --git a/builtin/commit-tree.c b/builtin/commit-tree.c index 19e898fa4e..2177251e24 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; }