From: Junio C Hamano Date: Mon, 16 Apr 2007 06:01:54 GMT Subject: Re: [PATCH] display the subject of the commit just made Message-ID: <7vodlox3fx.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20070416055111.GC23255@mellanox.co.il> "Michael S. Tsirkin" 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 > > --- > >> Quoting Junio C Hamano : >> 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".