Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
strbuf: introduce strbuf_getline_{lf,nul}()
[gitweb.git]
/
builtin
/
commit.c
diff --git
a/builtin/commit.c
b/builtin/commit.c
index d054f849606b248a82f7b29103308feab36ca9e9..d9db59e1d275fbe0fac5c3ca461d8fdec3adcf2e 100644
(file)
--- a/
builtin/commit.c
+++ b/
builtin/commit.c
@@
-1690,7
+1690,7
@@
int cmd_commit(int argc, const char **argv, const char *prefix)
if (fp == NULL)
die_errno(_("could not open '%s' for reading"),
git_path_merge_head());
- while (strbuf_getline
(&m, fp, '\n'
) != EOF) {
+ while (strbuf_getline
_lf(&m, fp
) != EOF) {
struct commit *parent;
parent = get_merge_parent(m.buf);