git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Zbigniew Jędrzejewski-Szmek" <zbyszek@in.waw.pl>
To: Christopher Tiwald <christiwald@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
	Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>,
	git@vger.kernel.org, peff@peff.net,
	Clemens Buchacher <drizzd@aon.at>
Subject: Re: [fixup PATCH] push: Provide situational hints for non-fast-forward errors
Date: Sat, 17 Mar 2012 20:42:24 +0100	[thread overview]
Message-ID: <4F64E920.7010008@in.waw.pl> (raw)
In-Reply-To: <20120317184649.GA320@gmail.com>

On 03/17/2012 07:46 PM, Christopher Tiwald wrote:
> On Sat, Mar 17, 2012 at 06:10:35PM +0100, Zbigniew Jędrzejewski-Szmek wrote:
>>   static const char message_advice_use_upstream[] =
>> -	N_("Some of your local branches were stale with respect to their\n"
>> -	   "remote counterparts. If you did not intend to push these branches,\n"
>> -	   "you may want to set the 'push.default' configuration variable to\n"
>> -	   "'current' or 'upstream' to push only the current branch.");
>> +	N_("Updates were rejected because a tip of your branch is behind the remote.\n"
>> +	   "If you did not intend to push that branch, you may want to explicitly\n"
>> +	   "specify branches to push or set the 'push.default' configuration variable"
>> +	   "to 'current' or 'upstream' to always push only the current branch.");
>
> I prefer the "Some of your local..." language to "Updates were
> rejected..." as a reader, but I think you're right about providing the
> reason git rejected the push up front.
>
> My concern about this particular message is "tip of your branch is behind
> the remote" reads to me like my _current_ branch is the offender, when
> that cannot be the case (it'd hit message_advice_pull_before_push
> first). Maybe something like this might make it clearer?
>
> "Updates were rejected because a pushed branch tip is behind its remote
> counterpart. If you did not intend to push that branch, you may want to
> explicitly specify branches to push or set the 'push.default' configuration
> variable to 'current' or 'upstream' to always push only the current branch."
Yeah, that's better.

Zbyszek

  reply	other threads:[~2012-03-17 19:42 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-13 23:22 [PATCH] push: Provide situational hints for non-fast-forward errors Christopher Tiwald
2012-03-14  4:27 ` Junio C Hamano
2012-03-14 12:14   ` Zbigniew Jędrzejewski-Szmek
2012-03-14 13:00     ` Matthieu Moy
2012-03-14 14:27       ` Zbigniew Jędrzejewski-Szmek
2012-03-14 16:40         ` Christopher Tiwald
2012-03-15  8:54         ` Clemens Buchacher
2012-03-15 18:06           ` Junio C Hamano
2012-03-16  8:19             ` Matthieu Moy
2012-03-14 14:48   ` Christopher Tiwald
2012-03-14 14:53     ` Christopher Tiwald
2012-03-14  9:06 ` Matthieu Moy
2012-03-14 15:52   ` Christopher Tiwald
2012-03-14 17:26   ` Junio C Hamano
2012-03-16  5:36     ` Junio C Hamano
2012-03-16  9:10       ` Clemens Buchacher
2012-03-16 12:03         ` Junio C Hamano
2012-03-16 17:20           ` Christopher Tiwald
2012-03-16 18:07             ` Junio C Hamano
2012-03-16 22:00               ` Junio C Hamano
2012-03-16 21:41           ` Clemens Buchacher
2012-03-16 21:53             ` Junio C Hamano
2012-03-16 22:01               ` Clemens Buchacher
2012-03-16 22:10                 ` Junio C Hamano
2012-03-17 17:10       ` [fixup PATCH] " Zbigniew Jędrzejewski-Szmek
2012-03-17 18:46         ` Christopher Tiwald
2012-03-17 19:42           ` Zbigniew Jędrzejewski-Szmek [this message]
2012-03-19  0:15           ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F64E920.7010008@in.waw.pl \
    --to=zbyszek@in.waw.pl \
    --cc=Matthieu.Moy@grenoble-inp.fr \
    --cc=christiwald@gmail.com \
    --cc=drizzd@aon.at \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=peff@peff.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).