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 Apr 24, 2024
2 parents bedc58c + 9db0ed6 commit 6b1509e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prompt.c
Expand Up @@ -78,7 +78,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 6b1509e

Please sign in to comment.