summaryrefslogtreecommitdiff
path: root/builtin/commit-tree.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-09-19 10:47:57 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-19 10:47:57 +0900
commit4d46bce6b07b8047aad2726e5dc42edcc6787d6b (patch)
tree0a1aa8443225dbb1035dff64847f771b169cc4d5 /builtin/commit-tree.c
parentMerge branch 'rs/strbuf-leakfix' (diff)
parentcommit-tree: do not complete line in -F input (diff)
downloadtgif-4d46bce6b07b8047aad2726e5dc42edcc6787d6b.tar.xz
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
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 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;
}