From: "Santi Béjar" <sbejar@gmail.com>
To: "Junio C Hamano" <junkio@cox.net>
Cc: "Git Mailing List" <git@vger.kernel.org>
Subject: Re: [PATCH/RFC 2/3] git-fetch: Split fetch and merge logic
Date: Mon, 19 Feb 2007 23:13:35 +0100 [thread overview]
Message-ID: <8aa486160702191413p10c8ca0ek949580ffe953ea79@mail.gmail.com> (raw)
In-Reply-To: <7v649x7u90.fsf@assigned-by-dhcp.cox.net>
On 2/19/07, Junio C Hamano <junkio@cox.net> wrote:
> Santi Béjar <sbejar@gmail.com> writes:
>
> > git-fetch fetches the branches from the remote and saves this
> > information in .git/FETCH_FETCHED, and at the end it generates
> > the file .git/FETCH_HEAD.
> >
> > There are two cases where the behaviour is changed:
> >
> > 1) branch.*.merge no longer must exactly match the remote part
> > of the branch fetched. Both are expanded in full (as refs/heads/...)
> > and matched afterwards.
>
> How hard would it be to fix this?
At least it is not a 2 lines "fix".
> I see this as a regression.
> If you are setting configuration, wouldn't you rather see the
> behaviour consistent even when remote adds new refs?
I don't see it a regression. All current setups continue to work
properly and, sorry but I don't see how adding a new ref changes this.
>
> > 2) When the remote is specified with $GIT_DIR/branches/... and there is
> > a branch.*.merge, the remote branch name must match to get them merged.
> > Before the branch in $GIT_DIR/branches/... was always merged.
>
> I do not think the current $GIT_DIR/branches/ support with
> respect to choosing which remote branch to choose was done with
> any deep thinking, other than to stay backward compatible, so I
> would not put too much trust in what is in the documentation.
> At the same time, I personally can be pursuaded to go either
> way, exactly because I do not think the current behaviour has
> strict reasoning behind it.
I prefer my way, but I don't mind much either and it can be "fixed".
>
> However, I wonder how this change would affect existing setups
> people may have.
>
> Merging this at this moment would be a pain even if there were
> no downsides, as there are a few topics that want to touch
> parse-remote and fetch (two already in 'pu', and git-bundle
> series also wants to hook into git-fetch); these topics would
> need to get adjusted if this clean-up goes in first.
A problematic decision :)
Santi
next prev parent reply other threads:[~2007-02-19 22:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-16 8:06 [PATCH/RFC 0/3] Split fetch and merge logic Santi Béjar
2007-02-16 8:09 ` [PATCH/RFC 2/3] git-fetch: " Santi Béjar
2007-02-19 20:44 ` Junio C Hamano
2007-02-19 22:13 ` Santi Béjar [this message]
2007-02-19 23:27 ` Junio C Hamano
2007-02-20 11:21 ` Santi Béjar
2007-02-16 8:10 ` [PATCH/RFC 3/3] t/t5515: fixes for the separate " Santi Béjar
2007-02-16 8:22 ` [PATCH/RFC 0/3] Split " Junio C Hamano
2007-02-16 8:40 ` Santi Béjar
2007-02-16 20:10 ` Junio C Hamano
2007-02-16 20:30 ` Santi Béjar
2007-02-16 21:14 ` Junio C Hamano
2007-02-19 9:47 ` Santi Béjar
[not found] ` <87zm7eo78x.fsf@gmail.com>
2007-02-16 8:23 ` [PATCH/RFC 1/3] t/t5515-fetch-merge-logic.sh: Added tests for the merge login in git-fetch Santi Béjar
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=8aa486160702191413p10c8ca0ek949580ffe953ea79@mail.gmail.com \
--to=sbejar@gmail.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.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).