Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/strbuf-getline'
[gitweb.git]
/
builtin
/
hash-object.c
diff --git
a/builtin/hash-object.c
b/builtin/hash-object.c
index 43b098b76c0db28a93c6b1ebf1ea1131b0d67a0b..3bc5ec1d2194133fd392ca5bfbaaa5a26b901e5f 100644
(file)
--- a/
builtin/hash-object.c
+++ b/
builtin/hash-object.c
@@
-60,7
+60,7
@@
static void hash_stdin_paths(const char *type, int no_filters, unsigned flags,
{
struct strbuf buf = STRBUF_INIT, nbuf = STRBUF_INIT;
- while (strbuf_getline
(&buf, stdin, '\n'
) != EOF) {
+ while (strbuf_getline
_lf(&buf, stdin
) != EOF) {
if (buf.buf[0] == '"') {
strbuf_reset(&nbuf);
if (unquote_c_style(&nbuf, buf.buf, NULL))