Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
column: read lines with strbuf_getline()
author
Junio C Hamano
<gitster@pobox.com>
Wed, 28 Oct 2015 20:52:11 +0000
(13:52 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 15 Jan 2016 18:35:07 +0000
(10:35 -0800)
Multiple lines read here are concatenated on a single line to form a
multi-column output line. We do not want to have a CR at the end,
even if the input file consists of CRLF terminated lines.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/column.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
b42ca3d
)
diff --git
a/builtin/column.c
b/builtin/column.c
index 40eab085946a46b5cbace46ab9dbd8778564cd6f..33314b4d7127cb6e4116c350e113058e07f58474 100644
(file)
--- a/
builtin/column.c
+++ b/
builtin/column.c
@@
-51,7
+51,7
@@
int cmd_column(int argc, const char **argv, const char *prefix)
die(_("--command must be the first argument"));
}
finalize_colopts(&colopts, -1);
- while (!strbuf_getline
_lf
(&sb, stdin))
+ while (!strbuf_getline(&sb, stdin))
string_list_append(&list, sb.buf);
print_columns(&list, colopts, &copts);