From: Junio C Hamano <gitster@pobox.com>
To: Andreas Krey <a.krey@gmx.de>
Cc: Dave Olszewski <cxreg@pobox.com>, git@vger.kernel.org
Subject: Re: [RFC/PATCH] branch: new option --will-track
Date: Thu, 17 Dec 2009 23:16:26 -0800 [thread overview]
Message-ID: <7vd42c4ur9.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20091218061851.GA10221@inner.home.ulmdo.de> (Andreas Krey's message of "Fri\, 18 Dec 2009 07\:18\:51 +0100")
Andreas Krey <a.krey@gmx.de> writes:
> On Thu, 17 Dec 2009 16:07:08 +0000, Junio C Hamano wrote:
> ...
>> Also "git pull --remember $there $this" might be a good way to tell the
>> configuration mechanism from the UI to remember that "I always want to
>> merge $this branch from $there while on the branch I am currently on", and
>> its implementation may probably use "git branch --reconfigure" internally.
>
> Actually my favorite would be 'git push --track $there', pushing
> the current local branch to $there and setting up tracking. That
> way the tracking decision need not be made before the remote
> branch actually exists.
Yeah, it may be useful, but that belongs to the same "in addition to the
most flexible form, we might want to _also_ do so" category, as the one
that makes "git pull" remember.
The advantage of remembering upon the first pull is that the request to
remember doesn't involve any "push is reverse of pull" indirection.
Instead, it is exactly what the user actually has done once: "I'm doing
this once, remember it for me". Compared to it, I think it is less
obvious to make the first push remember its reverse [*1*].
Another issue that you need to think about is how you will allow users to
set up "integrate with merge or rebase" when making "push" remember.
An option with "pull" would make it much more obvious what is going on, as
the user would say "git pull --rebase --remember $there $this" if rebasing
is desired, and that is what is going to be remembered; again that is
thanks to the "I'm doing this once, remember it for me" semantics.
[Footnote]
*1* I am not saying "if you have 'pull --remember' you don't need 'push
--remember'" or vice versa. As long as each (judged individually) makes
sense we could have both.
next prev parent reply other threads:[~2009-12-18 7:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-16 9:39 [RFC/PATCH] branch: new option --will-track Dave Olszewski
2009-12-18 0:07 ` Junio C Hamano
2009-12-18 6:18 ` Andreas Krey
2009-12-18 7:16 ` Junio C Hamano [this message]
2010-01-05 22:38 ` Nanako Shiraishi
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=7vd42c4ur9.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=a.krey@gmx.de \
--cc=cxreg@pobox.com \
--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).