diff options
Diffstat (limited to 'prompt.c')
-rw-r--r-- | prompt.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -74,3 +74,15 @@ char *git_prompt(const char *prompt, int flags) } return r; } + +int git_read_line_interactively(struct strbuf *line) +{ + int ret; + + fflush(stdout); + ret = strbuf_getline_lf(line, stdin); + if (ret != EOF) + strbuf_trim_trailing_newline(line); + + return ret; +} |