From: "Stefan Völkel" <bd@bc-bd.org>
To: Miklos Vajna <vmiklos@frugalware.org>
Cc: Elijah Newren <newren@gmail.com>, git@vger.kernel.org
Subject: Re: How do I show only log messages for commits on a specific branch?
Date: Thu, 17 Dec 2009 15:20:47 +0100 [thread overview]
Message-ID: <4B2A3E3F.1@bc-bd.org> (raw)
In-Reply-To: <20091217002024.GM25474@genesis.frugalware.org>
Hi,
> git log $(git reflog show new|sed -n 's/ .*//;$ p')..new
I had trouble getting the above to work as a git alias (someething wrt
escaping I guess), however this:
gl = log --graph --pretty=oneline --abbrev-commit
bl = !sh -c 'git gl $0 --not $(git for-each-ref --format=%\\(refname\\)
refs/heads/* | grep -v refs/heads/$0)'
does exactly what I want:
# git reflog show new
76cacd3 new@{0}: commit: B
9638379 new@{1}: commit: A
7944f55 new@{2}: branch: Created from HEAD
# git gl
* 76cacd3 B
* 9638379 A
* 7944f55 Y
* b8e4a96 X
# git bl new
* 76cacd3 B
* 9638379 A
Thanks for the help,
Stefan
next prev parent reply other threads:[~2009-12-17 14:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-16 10:16 How do I show only log messages for commits on a specific branch? bd
2009-12-16 18:05 ` Elijah Newren
2009-12-16 23:26 ` Miklos Vajna
2009-12-16 23:58 ` Santi Béjar
2009-12-17 0:04 ` Elijah Newren
2009-12-16 23:59 ` Elijah Newren
2009-12-17 0:20 ` Miklos Vajna
2009-12-17 14:20 ` Stefan Völkel [this message]
2009-12-17 9:20 ` David Roden
2009-12-17 15:04 ` Pat Notz
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=4B2A3E3F.1@bc-bd.org \
--to=bd@bc-bd.org \
--cc=git@vger.kernel.org \
--cc=newren@gmail.com \
--cc=vmiklos@frugalware.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