Thread (23 messages) flat view 23 messages, 5 authors, 2016-06-15

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

From: Larry D'Anna <hidden>
Date: 2016-06-15 22:48:11

* Junio C Hamano (gitster@pobox.com) [100205 15:20]:
quoted
-		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



   
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help