Subject: Re: [PATCH 2/3] silence human readable info messages going to stderr from git push --porcelain

From: Larry D'Anna <[email-masked]>
Date: Fri, 5 Feb 2010 15:30:45 -0500

* Junio C Hamano ([email-masked]) [100205 15:20]:
> > -		if (!quiet && !ret && !refs_pushed(remote_refs))
> > +		if (!quiet && !porcelain && !ret && !refs_pushed(remote_refs))
> >  			fprintf(stderr, "Everything up-to-date\n");
> 
> This is a borderline.  If you are truly up-to-date, the calling script
> won't get anything.  It may be easier for Porcelain scripts to see this
> message on the standard output as an explicit succeses report instead.

how about this?

if (!quiet && (!porcelain || verbose) && !ret && !refs_pushed(remote_refs))
   fprintf(stderr, "Everything up-to-date\n");     

   --larry