Skip to content

Commit ad1892e

Browse files
dschoGit for Windows Build Agent
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 022bf7a + d1e8720 commit ad1892e

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

7979
fflush(stdout);
80-
ret = strbuf_getline_lf(line, stdin);
80+
ret = strbuf_getline(line, stdin);
8181
if (ret != EOF)
8282
strbuf_trim_trailing_newline(line);
8383

0 commit comments

Comments
 (0)