Skip to content

Commit cb6add0

Browse files
dschomjcheetham
authored andcommitted
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 8f136aa + 1e322a8 commit cb6add0

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
@@ -78,7 +78,7 @@ int git_read_line_interactively(struct strbuf *line)
7878
int ret;
7979

8080
fflush(stdout);
81-
ret = strbuf_getline_lf(line, stdin);
81+
ret = strbuf_getline(line, stdin);
8282
if (ret != EOF)
8383
strbuf_trim_trailing_newline(line);
8484

0 commit comments

Comments
 (0)