Re: [RFC] Using gitrevisions :/search style with other operators
- From
Kevin Ballard <kevin@sb.org>
- Date
- Nov 10, 2010, 07:46 UTC
- Message-ID
- <23523534-F7A7-4D61-A899-8B3B28566EA7@sb.org>
- In-Reply-To
- <20101110083209.6a1252ef@chalon.bertin.fr>
On Nov 9, 2010, at 11:32 PM, Yann Dirson wrote:
Show 9 quoted lines
>> Another thing to consider - the current :/foo syntax searches for the
>> newest commit reachable from any ref. Using the ^{} syntax will
>> require specifying a ref first. I'm not sure this is a problem
>> though, as I'm not really sure why :/foo searches from all refs to
>> begin with.
>
> The syntax could be extended so that ^{whatever} starts looking at
> current commit (ie. HEAD), somewhat like @{whatever} looks at reflog for
> current branch.:/foo doesn't start from the current commit - it searches all refs. However, making ^{} search all refs if not given one doesn't make sense for any operator except :/foo, so I don't think it's worth doing
-Kevin Ballard