Re: [PATCH] Add --only-merges flag to display only merge commits.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Apr 9, 2008, 15:00 UTC
- Message-ID
- <alpine.LSU.1.00.0804091659130.10660@wbgn129.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20080409145108.GY11574@genesis.frugalware.org>
Hi,
On Wed, 9 Apr 2008, Miklos Vajna wrote:
Show 12 quoted lines
> On Wed, Apr 09, 2008 at 04:06:57PM +0200, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote: > > > I just wanted to see the list of merges since the last tag in a repo > > > where we have 1000+ commits and about 20 merges and found that there is > > > no easy way to do so. > > > > I usually did something like this: > > > > git log -1 $(git rev-list --parents | sed -n "s/ .* .*//p") > > If you mean: > > git log -1 $(git rev-list --parents HEAD | sed -n "s/ .* .*//p")
Yes, I meant "something like" that...
> then it'll show only the first merge, --only-merges shows each merge. > (While of course you can still use -1 or tag.. or so.)
Yep, I wrote "-1", but what I actually meant was "--no-walk".
Sorry, Dscho