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 committed Oct 21, 2024
2 parents 0ef9314 + e7ee7b5 commit a69f3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prompt.c
Original file line number Diff line number Diff line change
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 a69f3ea

Please sign in to comment.