Re: [PATCH v4] Introduce %<branch> as shortcut to the tracked branch
- From
Julian Phillips <julian@quantumfyre.co.uk>
- Date
- Mar 20, 2009, 23:41 UTC
- Message-ID
- <alpine.LNX.2.00.0903202324170.13726@reaper.quantumfyre.co.uk>
- In-Reply-To
- <fabb9a1e0903201620l456bfc39n2422dcb1e738eb37@mail.gmail.com>
On Sat, 21 Mar 2009, Sverre Rabbelier wrote:
Show 10 quoted lines
> Heya, > > On Sat, Mar 21, 2009 at 00:08, Julian Phillips <julian@quantumfyre.co.uk> wrote: >> git branch -m "'%master" percent-master > > Which kinda defeats the purpose of having a short-and-easy-to-write > refname, no? "'%master" is not that easy to type, I at least get my > fingers mixed up in the "'% sequence. Perhaps we should reserve these > special characters now, and deprecate their use? Junio seemed to be > open to that (quoted below)...
But it's not supposed to be easy to type ...
To use the new syntax you type %master only. What I was proposing was a way to get at the branch that you had before the wizzy new feature was added. Something you only do once to rename it - why waste an easy to type sequence on that?
I agree that adding some more reserved characters is a reasonable way forward - but I think a way should be provided for people who are _already_ using those characters to rename their branches to something that avoids those characters in a simple (but not necessarily easy to type) way.
--
Julian
---
panic("%s: CORRUPTED BTREE OR SOMETHING", __FUNCTION__);
linux-2.6.6/fs/xfs/xfs_bmap.c