From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: "Carlos Martín Nieto" <cmn@elego.de>
Cc: git@vger.kernel.org
Subject: Re: [RFC/PATCH] Make git-{pull,rebase} no-tracking message friendlier
Date: Wed, 29 Feb 2012 09:09:01 +0100 [thread overview]
Message-ID: <vpqbooit61u.fsf@bauges.imag.fr> (raw)
In-Reply-To: <1330487854.691.24.camel@centaur.lab.cmartin.tk> ("Carlos Martín Nieto"'s message of "Wed, 29 Feb 2012 04:57:34 +0100")
Carlos Martín Nieto <cmn@elego.de> writes:
> $example is a caller-given string which already contains the whole
> command (i.e. it's already 'git rebase <upstream branch>' or 'git pull
> <repository> <branch>').
OK, I didn't remember the exact message.
> In this patch I've moved that command to its own paragraph so the
> usage part of the output gets more visibility.
I prefer this, yes.
Perhaps we could go further and try to guess a remote and a branch name
to give in the example. "git push" already does that to some extend:
$ git -c push.default=tracking push
fatal: The current branch my-branch has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin my-branch
i.e. if there's a remote configured, then using it in the example makes
sense. I'm not sure if using the current branch name in the example
would also be a good thing (it usually is for "push" because most users
would push to a branch with the same name on the remote end).
It may also make sense not to suggest "git remote add" if there's
already a remote configured. Otherwise, the case, which is probably the
most common, of:
git clone http://example.com/repo
cd repo
git checkout -b new-branch
git pull
is made far more complex than it should for the newcommer.
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
next prev parent reply other threads:[~2012-02-29 8:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-23 16:05 [RFC/PATCH] Make git-{pull,rebase} no-tracking message friendlier Carlos Martín Nieto
2012-02-23 20:28 ` Junio C Hamano
2012-02-27 17:07 ` Carlos Martín Nieto
2012-02-27 22:06 ` Matthieu Moy
2012-02-29 3:57 ` Carlos Martín Nieto
2012-02-29 8:09 ` Matthieu Moy [this message]
2012-02-29 17:34 ` Carlos Martín Nieto
2012-02-29 18:41 ` [PATCH] Make git-{pull,rebase} message without tracking information friendlier Carlos Martín Nieto
2012-02-29 20:14 ` Junio C Hamano
2012-03-04 4:41 ` Carlos Martín Nieto
2012-03-05 7:49 ` 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=vpqbooit61u.fsf@bauges.imag.fr \
--to=matthieu.moy@grenoble-inp.fr \
--cc=cmn@elego.de \
--cc=git@vger.kernel.org \
/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).