Merge pull request #2730 from dscho/crlf-aware-git-add-i

git add -i: handle CR/LF line endings in the interactive input
This commit is contained in:
Johannes Schindelin 2020-07-02 22:46:27 +02:00
commit 62eeaf07cf

View File

@ -80,7 +80,7 @@ int git_read_line_interactively(struct strbuf *line)
int ret;
fflush(stdout);
ret = strbuf_getline_lf(line, stdin);
ret = strbuf_getline(line, stdin);
if (ret != EOF)
strbuf_trim_trailing_newline(line);