Re: [PATCH 06/10] Change incorrect "remote branch" to "remote tracking branch" in C code
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Oct 28, 2010, 23:23 UTC
- Message-ID
- <20101028232303.GA25133@burratino>
- In-Reply-To
- <vpqtyk6dk0o.fsf@bauges.imag.fr>
Matthieu Moy wrote:
> I don't think any script would parse the last part of FETCH_HEAD, > which seems really to be meant as a comment
Yes, believable.
> Jonathan Nieder <jrnieder@gmail.com> writes:
>> Is fmt-merge-msg affected? > > No (that's why it's a separate patch. In case you missed my earlier > message: yes, the testsuite passes between the two).
I suspect the testsuite passing is only because the fmt-merge-msg tests don't try "git fetch . remotes/foo/bar".
In modern times, "git merge" bypasses fmt-merge-msg with its own code (as you probably noticed :)).
> In the process, we change "non-remote branch" to "branch outside > the refs/remotes/ hierarchy" to avoid the ugly "non-remote-tracking > branch". The new formulation actually corresponds to how the code > detects this case (i.e. prefixcmp(refname, "refs/remotes")).
Sounds good. Thanks.