Re: [PATCH 0/2] [RFD] Using gitrevisions :/search style with other operators
- From
Kevin Ballard <kevin@sb.org>
- Date
- Dec 10, 2010, 21:21 UTC
- Message-ID
- <66D6F30D-4707-4057-BB46-57B2DF01F479@sb.org>
- In-Reply-To
- <20101210190332.GA6210@burratino>
On Dec 10, 2010, at 11:03 AM, Jonathan Nieder wrote:
> - What is the intended use for this family of modifiers? I sort
> of understand ^{:i/... } for people that forget what case they
> have used, but why the :nth and others?In my particular case, I was glancing through the logs, and I wanted to grab the second branch that someone else had made that was merged into pu. I would have loved to be able to run something like
git merge origin/pu^{:nth(2)/nd/}While we're speaking of modifiers, could we use one that says "only search the first parent hierarchy", e.g. something equivalent to git log's --first-parent flag?
-Kevin Ballard