Skip to content
Permalink
Browse files
Merge pull request #2730 from dscho/crlf-aware-git-add-i
git add -i: handle CR/LF line endings in the interactive input
  • Loading branch information
dscho committed Jul 2, 2020
2 parents a98b073 + 912269f commit 63ec52b4d400333d1a8c1c2209756e649b5c645f
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);

0 comments on commit 63ec52b

Please sign in to comment.