summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 011fe98)
raw | patch | inline | side by side (parent: 011fe98)
author | Larry D'Anna <larry@elder-gods.org> | |
Sat, 27 Feb 2010 04:52:14 +0000 (23:52 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 28 Feb 2010 18:39:28 +0000 (10:39 -0800) |
git-push prints the line "To <remoteurl>" before above each of the ref status
lines. In --porcelain mode, these "To <remoteurl>" lines go to the standard
error, but the ref status lines go to the standard output. This makes it
difficult for the process reading standard output to know which ref status lines
correspond to which remote. This patch sends the "To <remoteurl>" lines to the
the standard output instead.
Signed-off-by: Larry D'Anna <larry@elder-gods.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
lines. In --porcelain mode, these "To <remoteurl>" lines go to the standard
error, but the ref status lines go to the standard output. This makes it
difficult for the process reading standard output to know which ref status lines
correspond to which remote. This patch sends the "To <remoteurl>" lines to the
the standard output instead.
Signed-off-by: Larry D'Anna <larry@elder-gods.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c | patch | blob | history |
diff --git a/transport.c b/transport.c
index 3846aacb476b552cefddd8774b9a055e353b6ebc..fb653c654a884906ecb5163e8a3f8d9c3f63cc63 100644 (file)
--- a/transport.c
+++ b/transport.c
static int print_one_push_status(struct ref *ref, const char *dest, int count, int porcelain)
{
if (!count)
- fprintf(stderr, "To %s\n", dest);
+ fprintf(porcelain ? stdout : stderr, "To %s\n", dest);
switch(ref->status) {
case REF_STATUS_NONE: