Merge branch 'jc/strbuf-getline'
The preliminary clean-up for jc/peace-with-crlf topic. * jc/strbuf-getline: strbuf: give strbuf_getline() to the "most text friendly" variant checkout-index: there are only two possible line terminations update-index: there are only two possible line terminations check-ignore: there are only two possible line terminations check-attr: there are only two possible line terminations mktree: there are only two possible line terminations strbuf: introduce strbuf_getline_{lf,nul}() strbuf: make strbuf_getline_crlf() global strbuf: miniscule style fix
This commit is contained in:
@ -122,7 +122,7 @@ char *git_terminal_prompt(const char *prompt, int echo)
|
||||
fputs(prompt, output_fh);
|
||||
fflush(output_fh);
|
||||
|
||||
r = strbuf_getline(&buf, input_fh, '\n');
|
||||
r = strbuf_getline_lf(&buf, input_fh);
|
||||
if (!echo) {
|
||||
putc('\n', output_fh);
|
||||
fflush(output_fh);
|
||||
|
Reference in New Issue
Block a user