Skip to content

Commit f2157d4

Browse files
committed
Merge pull request #2730 from dscho/crlf-aware-git-add-i
git add -i: handle CR/LF line endings in the interactive input
2 parents 88a8e24 + e4243ee commit f2157d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prompt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ int git_read_line_interactively(struct strbuf *line)
8080
int ret;
8181

8282
fflush(stdout);
83-
ret = strbuf_getline_lf(line, stdin);
83+
ret = strbuf_getline(line, stdin);
8484
if (ret != EOF)
8585
strbuf_trim_trailing_newline(line);
8686

0 commit comments

Comments
 (0)