Re: [PATCH v4] Introduce %<branch> as shortcut to the tracked branch
- From
- Andreas Gruenbacher <agruen@suse.de>
- Date
- Mar 21, 2009, 00:35 UTC
- Message-ID
- <200903210135.33729.agruen@suse.de>
- In-Reply-To
- <alpine.LNX.2.00.0903202300330.13726@reaper.quantumfyre.co.uk>
On Saturday, 21 March 2009 0:08:42 Julian Phillips wrote:
Show 7 quoted lines
> How about adding a generic escape hatch, that would cover this and > future extensions? > > Let a ref that starts with a single quote be taken as given and not > processed. You have to escape it to get it past the shell, but that makes > it rather unlikely that anyone has used a name that starts with a quote - > and if they have you can still use this mechanism to rename it.
To me the most obvious escape sequence would be \x for disabling whatever special meaning x has (for non-alphabetic x). With quoting you likely eventually end up needing \' in some cases anyway...
Andreas