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

Re: can I get only the list of merges?

From
MLMatthias Lederhofer <matled@gmx.net>
Date
Jul 10, 2006, 17:41 UTC
Message-ID
<E1FzzlS-0003JE-9C@moooo.ath.cx>
In-Reply-To
<20060710192622.70c51a81.diegocg@gmail.com>
Diego Calleja <diegocg@gmail.com> wrote:
> Hi, git-log and git-rev-list and friends have a --no-merges option. However,
> I need the contrary functionality: a sort of "--only-merges" way of getting
> the log? (that is, without parsing manually the git-log output)

Perhaps something like this? It finds all commits with more than one parent (I dunno if there are any other commits that have more than one parent) git-rev-list --parents HEAD | \ grep -E '^([a-z0-9]{40} ){2}[a-z0-9]{40}' | \ cut -d ' ' -f 1

Previous: Diego CallejaNext: Linus Torvalds
Message 2 of 6 in “can I get only the list of merges?”
  1. Diego CallejaJul 10, 2006
  2. Matthias LederhoferJul 10, 2006
  3. Linus TorvaldsJul 10, 2006
  4. Linus TorvaldsJul 10, 2006
  5. Johannes SchindelinJul 10, 2006
  6. git-rev-list: add documentation for --parents, --no-mergesMatthias Lederhofer, Jul 10, 2006

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.