Re: [PATCH 1/5] t1508 (at-combinations): more tests; document failures
- From
David Aguilar <davvid@gmail.com>
- Date
- May 4, 2013, 08:10 UTC
- Message-ID
- <CAJDDKr7JxmfCDSdPCFhK87g8AuuBexLn-v6SkQh6k0uAbH7j0w@mail.gmail.com>
- In-Reply-To
- <CALkWK0mhHDN3fAydTQN_wDhVzfiqo-UiRFG3eajAWk+S2dHGSw@mail.gmail.com>
On Thu, May 2, 2013 at 10:09 AM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
Show 11 quoted lines
> Felipe Contreras wrote: >> We probably should fix those, but that is orthogonal to the '@' shortcut. >> >> We can have the '@' shortcut *today*, with minimal changes to the code >> and the documentation, in a limited and understood scope, with no >> surprises. >> >> We can fix the symbolic ref stuff slowly, step by step, no need to >> delay the '@' shortcut for that. > > Agreed.
If only we didn't care about windows then we could have this feature today:
cd .git
ln -s HEAD @...and everything works, in the most natural way. Has anyone else tweaked their repo this way?
Is an alternative implementation to change the template repo to ship with a symlink?
For windows, perhaps we can use this new code behind an #ifdef?
Anyways, it's just a crazy idea. I very much like this feature, and in a tweaked repo @{0}{1} actually works.
Is there no way to tweak this at some really low level to trick git into believing the link exists (even when it doesn't)?
I guess that's what these patches do, but the limitations seem unfortunate. -- David