Re: [PATCH] push: error out when the "upstream" semantics does not make sense
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Apr 5, 2012, 20:24 UTC
- Message-ID
- <vpqsjgi53mh.fsf@bauges.imag.fr>
- In-Reply-To
- <7vhawy54nd.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
> die(_("You are pushing to remote '%s', which is not the "
> - "upstream of your\ncurrent branch '%s'.\n"),
> + "upstream of your\ncurrent branch '%s',\n"
> + "without telling me to push which local branch to\n"
> + " update which remote branch with."),Sounds overly complex sentence to me. "without telling me what to push" sounded good enough without being long, so I prefered it.
I like accompanying these messages with the way out for the user, so perhaps we can add stg like
"To push the current branch to this remote, run:
git push <remote> <branch>
"
-- Matthieu Moy http://www-verimag.imag.fr/~moy/