From: Matthias Lederhofer <matled@gmx.net>
To: Diego Calleja <diegocg@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: can I get only the list of merges?
Date: Mon, 10 Jul 2006 19:41:46 +0200 [thread overview]
Message-ID: <E1FzzlS-0003JE-9C@moooo.ath.cx> (raw)
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
next prev parent reply other threads:[~2006-07-10 17:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-10 17:26 can I get only the list of merges? Diego Calleja
2006-07-10 17:41 ` Matthias Lederhofer [this message]
2006-07-10 18:09 ` Linus Torvalds
2006-07-10 18:51 ` Linus Torvalds
2006-07-10 22:37 ` Johannes Schindelin
2006-07-10 17:57 ` [PATCH] git-rev-list: add documentation for --parents, --no-merges Matthias Lederhofer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1FzzlS-0003JE-9C@moooo.ath.cx \
--to=matled@gmx.net \
--cc=diegocg@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox