git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] ld/push-porcelain
@ 2010-02-26 19:50 Larry D'Anna
  2010-02-26 19:50 ` [PATCH 1/4] git-push: fix an error message so it goes to stderr Larry D'Anna
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Larry D'Anna @ 2010-02-26 19:50 UTC (permalink / raw)
  To: git; +Cc: Larry D'Anna


I'm reposing this series to restart discussion on it. It's currently listed as
stalled.  The only change versus what's in pu is that this one doesn't mess with
the semantics of --quiet.  

So, what does it need?


Larry D'Anna (4):
  git-push: fix an error message so it goes to stderr
  git-push: squelch advice message if in --porcelain mode
  git-push: send "To <remoteurl>" messages to the standard output in
    --porcelain mode
  git-push: make git push --dry-run --porcelain exit with status 0 even
    if updates will be rejected

 builtin-push.c      |   11 ++++++++---
 builtin-send-pack.c |    4 ++++
 send-pack.h         |    1 +
 transport.c         |    6 ++++--
 4 files changed, 17 insertions(+), 5 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 1/4] git-push: fix an error message so it goes to stderr
  2010-02-09  5:48 ` [PATCH v3 2/3] git-push: clean up some of the output from git push --porcelain Larry D'Anna
@ 2010-02-09  5:53 Larry D'Anna
  2010-02-09  5:48 ` [PATCH v3 2/3] git-push: clean up some of the output from git push --porcelain Larry D'Anna
  0 siblings, 1 reply; 7+ messages in thread
From: Larry D'Anna @ 2010-02-09  5:53 UTC (permalink / raw)
  To: git; +Cc: Larry D'Anna

These sort of messages typically go to the standard error.

Signed-off-by: Larry D'Anna <larry@elder-gods.org>
---
 builtin-push.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/builtin-push.c b/builtin-push.c
index 5633f0a..0a27072 100644
--- a/builtin-push.c
+++ b/builtin-push.c
@@ -124,9 +124,9 @@ static int push_with_options(struct transport *transport, int flags)
 		return 0;
 
 	if (nonfastforward && advice_push_nonfastforward) {
-		printf("To prevent you from losing history, non-fast-forward updates were rejected\n"
-		       "Merge the remote changes before pushing again.  See the 'Note about\n"
-		       "fast-forwards' section of 'git push --help' for details.\n");
+		fprintf(stderr, "To prevent you from losing history, non-fast-forward updates were rejected\n"
+				"Merge the remote changes before pushing again.  See the 'Note about\n"
+				"fast-forwards' section of 'git push --help' for details.\n");
 	}
 
 	return 1;
-- 
1.7.0.rc1.33.g07cf0f.dirty

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-02-26 20:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-26 19:50 [PATCH 0/4] ld/push-porcelain Larry D'Anna
2010-02-26 19:50 ` [PATCH 1/4] git-push: fix an error message so it goes to stderr Larry D'Anna
2010-02-26 19:50 ` [PATCH 2/4] git-push: squelch advice message if in --porcelain mode Larry D'Anna
2010-02-26 20:04   ` Junio C Hamano
2010-02-26 19:50 ` [PATCH 3/4] git-push: send "To <remoteurl>" messages to the standard output " Larry D'Anna
2010-02-26 19:50 ` [PATCH 4/4] git-push: make git push --dry-run --porcelain exit with status 0 even if updates will be rejected Larry D'Anna
  -- strict thread matches above, loose matches on Subject: below --
2010-02-09  5:53 [PATCH 1/4] git-push: fix an error message so it goes to stderr Larry D'Anna
2010-02-09  5:48 ` [PATCH v3 2/3] git-push: clean up some of the output from git push --porcelain Larry D'Anna
2010-02-09  5:54   ` [PATCH 2/4] git-push: squelch advice message if in --porcelain mode Larry D'Anna

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 NNTP newsgroup(s).