From: Jeff King <peff@peff.net>
To: Johannes Sixt <j6t@kdbg.org>
Cc: Eric Raible <raible@gmail.com>, git@vger.kernel.org
Subject: Re: git merge remote branch says "Merge commit ..."?
Date: Sat, 23 May 2009 05:17:12 -0400 [thread overview]
Message-ID: <20090523091711.GB20416@coredump.intra.peff.net> (raw)
In-Reply-To: <200905222030.34301.j6t@kdbg.org>
On Fri, May 22, 2009 at 08:30:34PM +0200, Johannes Sixt wrote:
> On Freitag, 22. Mai 2009, Jeff King wrote:
> > No, it is not terribly expensive. But you do have to talk to the server,
> > which may mean making an ssh connection, or the server may be overloaded
> > and slow. So it can take a few seconds instead of a few microseconds.
>
> It's certainly doable without a remote connection with some digging in the
> configuration.
Er, I think we have gotten a bit off track.
Yes, it's clearly possible to pretend you fetched but not actually do so
when doing "git merge origin/master" (and the patch I posted does
something close, but doesn't fill in the actual remote name; you just
get "remote branch origin/master").
All the other part of this thread was just me claiming that:
git fetch origin
git log origin...
git merge origin
Is a totally valid workflow, and that the answer should not be "those
people should just run pull".
> Git-gui has some magic to find out the remote when you request to merge a
> remote tracking branch. That is, even though you clickety-click through to do
> the equivalent of 'git merge origin/master', it comes up with a merge message
> that is the same as if you had said 'git pull origin master' on the command
> line. It doesn't need a connection to do that.
Right. We could probably use similar logic in "git merge". I'm not sure
if it is worth the trouble to end up with "Merge branch 'master' of
origin" instead of "Merge remote branch 'origin/master'".
-Peff
next prev parent reply other threads:[~2009-05-23 9:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-21 19:50 git merge remote branch says "Merge commit ..."? skillzero
2009-05-22 7:49 ` Jeff King
2009-05-22 17:29 ` Eric Raible
2009-05-22 17:54 ` Jeff King
2009-05-22 18:08 ` git merge remote branch says Eric Raible
2009-05-22 18:10 ` Jeff King
2009-05-22 18:30 ` git merge remote branch says "Merge commit ..."? Johannes Sixt
2009-05-23 9:17 ` Jeff King [this message]
2009-05-23 9:26 ` Junio C Hamano
2009-05-25 9:44 ` Jeff King
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=20090523091711.GB20416@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=j6t@kdbg.org \
--cc=raible@gmail.com \
/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).