Re: [PATCH v4] add-patch: response to unknown command
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 25, 2024, 21:13 UTC
- Message-ID
- <xmqqr0etdu2c.fsf@gitster.g>
- In-Reply-To
- <CAPig+cRerw2SnkEK4-_wiPopGii+Eq92UiBmqib_oBgArty-Gg@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 6 quoted lines
> That was also the adopted solution to the cited similar example[1]; > git-worktree was changed to send all its chatty output to stderr[2], > which was appropriate for that (non-interactive) case. > > [1]: https://lore.kernel.org/git/CAPig+cTGq-10ZTBts2LXRVdPMf2vNMX8HTuhg_+ZHSiLX-brOQ@mail.gmail.com/ > [2]: https://lore.kernel.org/git/20211203034420.47447-2-sunshine@sunshineco.com/
Hmph, what I just sent out tries to send everything to the standard output stream. For an interactive sesion, whether the interaction is done over stdout or stderr does not really make much difference, but I have a slight preference to use the stderr (because I view prompts etc. in the same "chatty" class as the progress bar), but I do not care enough to go back and redo the patch ;-)