Re: [PATCH] Make '@' not valid in a ref name.
- From
Shawn Pearce <spearce@spearce.org>
- Date
- May 21, 2006, 01:58 UTC
- Message-ID
- <20060521015849.GB7605@spearce.org>
- In-Reply-To
- <7vodxsywzk.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
> I am not a fan of retroactively disallowing what we used to > allow. Is this unavoidable? >
We're talking about it on #git right now. Someone actually uses refs like 'user@host/foo' and thus doesn't like this patch either.
We were talking about disallowing '@{' instead. Really its just '@{<some run that smells like a date}' at the end of the ref which would want to be disallowed; similiar to how ~ and ^ really only need to be disallowed near the end.
The date parser grabs '@{' not '@' so 'user@host/foo@{yesterday}' makes sense to it. But 'user@{host}/foo@{yesterday}' is going to cause problems as the date parser will attempt to evaluate 'host}/foo@{yesterday'. :-(
-- Shawn.