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 29, 2024
2 parents 5eb4d99 + 0bf2b68 commit 296803f
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 296803f

Please sign in to comment.