Re: [PATCH 0/2] [RFD] Using gitrevisions :/search style with other operators
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 9, 2010, 02:11 UTC
- Message-ID
- <20101209021117.GB31119@burratino>
- In-Reply-To
- <AANLkTikOehig7LjpUC=b6iSjGnuF=TsZmipWDfQB7AW6@mail.gmail.com>
Nguyen Thai Ngoc Duy wrote:
> OK so :nth(3)/foo for all branches?
That steals namespace from "the path 'nth(3)/foo' in the index". But is "the third instance of foo in all branches" something that needs to be possible to say? Branches do not have a well defined order, anyway. A command to list all commits with "foo" in the subject like
git log --oneline --grep-subject=foo
sounds more useful (assuming --grep=foo yields too many false positives).