Re: How do I show only log messages for commits on a specific branch?
- From
- Stefan Völkel <bd@bc-bd.org>
- Date
- Dec 17, 2009, 14:20 UTC
- Message-ID
- <4B2A3E3F.1@bc-bd.org>
- 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