Re: [PATCH v2 1/2] Refactor code asking the user for input interactively
- From
Jeff King <peff@peff.net>
- Date
- Apr 10, 2020, 15:07 UTC
- Message-ID
- <20200410150753.GA68344@coredump.intra.peff.net>
- In-Reply-To
- <9d2ee78a9e414c0b6aacbc9c878ab08eb70703d5.1586518072.git.gitgitgadget@gmail.com>
On Fri, Apr 10, 2020 at 11:27:50AM +0000, Johannes Schindelin via GitGitGadget wrote:
Show 10 quoted lines
> diff --git a/prompt.h b/prompt.h > index e04cced030c..e294e93541c 100644 > --- a/prompt.h > +++ b/prompt.h > @@ -6,4 +6,6 @@ > > char *git_prompt(const char *prompt, int flags); > > +int git_read_line_interactively(struct strbuf *line); > +
It might be worth adding some comments discussing why one would use git_prompt() versus git_read_line_interactively().
Other than that, both patches look good to me. Thanks for calling out the changed trimming behavior preemptively. I agree it should not be a big deal either way.
-Peff