git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add --only-merges flag to display only merge commits.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 9, 2008, 14:06 UTC
Message-ID
<alpine.LSU.1.00.0804091605460.10660@wbgn129.biozentrum.uni-wuerzburg.de>
In-Reply-To
<20080408203648.GS11574@genesis.frugalware.org>
Hi,
On Tue, 8 Apr 2008, Miklos Vajna wrote:
Show 11 quoted lines
> This is the opposite of git-rev-list --no-merges: It will hide commits 
> with single or no parent.
> 
> It is useful if a maintainer has a lot of commits between tags and 
> usually each feature is developed in its own topic branch.
> 
> Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> ---
> 
> 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")

Hth, Dscho

Previous: Miklos VajnaNext: Miklos Vajna
Message 2 of 7 in “Add --only-merges flag to display only merge commits.”
  1. Add --only-merges flag to display only merge commits.Miklos Vajna, Apr 8, 2008
  2. Johannes SchindelinApr 9, 2008
  3. Miklos VajnaApr 9, 2008
  4. Johannes SchindelinApr 9, 2008
  5. Miklos VajnaApr 9, 2008
  6. Junio C HamanoApr 9, 2008
  7. Miklos VajnaApr 9, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.