Re: [PATCH 4/5] remote.c: teach branch_get() to treat symrefs other than HEAD
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- May 1, 2013, 19:50 UTC
- Message-ID
- <CALkWK0mfHVBLPdU7jyiBR=-kSguCBFOhsEsXYYthBuQbtX7MuA@mail.gmail.com>
- In-Reply-To
- <CAMP44s34X+6c2V0iU_+dfNR9ULXD+Q0CDFk0S9qdK0n8AC81DQ@mail.gmail.com>
Felipe Contreras wrote:
> As I said, the @@{u} thing can be fixed through other ways.It's not just @@{u}. I can have lots of custom symbolic refs working properly; I might choose D for my deleted-reflogs, M for master and so on.
$ git log M..
The point is that my solution solves the problem in the more general case.
> Moreover, "HEAD" is still a special case in remote.c::branch_get() > that you just modified.
It's not. It's just a quick shortcut for the common case because read_config() already sets it up.