git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Re: Non-error messages appears in STDERR
       [not found] <86adad09-bba9-4415-834c-c004071fd9c2@l14g2000pro.googlegroups.com>
@ 2011-05-30 20:29 ` Jonathan Nieder
  0 siblings, 0 replies; only message in thread
From: Jonathan Nieder @ 2011-05-30 20:29 UTC (permalink / raw
  To: Pok Man Lau; +Cc: msysGit, git

Hi,

Pok Man Lau wrote:

> I am writing a class library to wrap bin\git.exe and trying to be a
> bit more accurate on error handling. Here are something interesting I
> found so far with git version 1.7.2.3.msysgit.0
>
> Some of the command output returned by git.exe appeared to be STDERR
> instead of STDOUT even they are not error message.
>
> For example:
> checkout <branch_name>
>
> I would expected the message "Switched to branch '<branch_name>'" to
> be a STDOUT, but it appears to be STDERR.

Yes, generally speaking the intent is the "result" or output that
could be conceivably parsed will go to stdout, while progress
information goes to stderr.

I think it would make sense to document this somewhere, e.g., in the
"git help cli" text.  Do you think that's the right place?  Any ideas
for wording?

Thanks much,
Jonathan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-30 20:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <86adad09-bba9-4415-834c-c004071fd9c2@l14g2000pro.googlegroups.com>
2011-05-30 20:29 ` Non-error messages appears in STDERR Jonathan Nieder

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).