Thread (10 messages) flat view 10 messages, 6 authors, 2016-06-15

Re: How do I show only log messages for commits on a specific branch?

From: Stefan Völkel <hidden>
Date: 2016-06-15 22:47:55

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help