Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Re: [PATCH] display the subject of the commit just made

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:04

"Michael S. Tsirkin" [off-list ref] writes:
Display the subject of the commit just made.

Useful e.g. to figure out what I did from screen history,
or to make sure subject line is short enough and makes sense
on its own.

Signed-off-by: Michael S. Tsirkin <redacted>

---
quoted
Quoting Junio C Hamano [off-list ref]:
Close but no cigar.  You broke it for a merge commit, I think.

Perhaps

	pretty="format:Created${initial_commit:+ initial} commit %h: %s%n"
	git-diff-tree --always --shortstart --summary --root --pretty="$pretty" HEAD
OK, thanks fo rpointing this out.
But why the extra %n at the end?
Because I *got* *rid* *of* "echo".
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help