Skip to content

Commit

Permalink
Merge pull request #2730 from dscho/crlf-aware-git-add-i
Browse files Browse the repository at this point in the history
git add -i: handle CR/LF line endings in the interactive input
  • Loading branch information
dscho authored and Git for Windows Build Agent committed Jul 7, 2020
2 parents 2657d1a + f3e1137 commit f2265a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prompt.c
Expand Up @@ -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);

Expand Down

0 comments on commit f2265a7

Please sign in to comment.