On Tue, 2009-10-02 at 20:54 -0800, Ask Bjørn Hansen wrote:
> Thanks.   I tweaked the commit message a bit. In git the first line  
> works more like a subject line; many tools will show just the first  
> line by default.  (For example "git shortlog v0.40.."

Shortlog shows only the subject.  It is useful to get the commit id
as well (examples below uses the git repo built from the old SVN one).

E.g. (-3 gives last 3 commits).

====
$ git log -3 --pretty='format:%h %s'

c38660c Author:  Jeff King <p...@peff.net>
798eebc Ignore leading/trailing whitespace in config files
4f6c3a6 Trailing whitespace cleanup
====

You can easily customize the git log output to whatever you want,  e.g.
(example below uses the git repo built from the old SVN one).  See
"PRETTY FORMATS" in 'man git-log'

E.g. show the last 10 subjects with short hash and author's name.

====
$ git log -10 --pretty='format:%h %an - %s'

c38660c robert - Author:  Jeff King <p...@peff.net>
798eebc robert - Ignore leading/trailing whitespace in config files
4f6c3a6 robert - Trailing whitespace cleanup
c9e628e robert - Allow configuration of spool_dir permissions
2781ef8 robert - Allow local sites to override the definition of an 
96f731d vetinari - qpsmtpd (x)inetd: fix Can't call method "connected"
181698e vetinari - update to latest commit (connection->local_*)
826e462 vetinari - async: add connection->local_ip, 
e74f532 vetinari - keep the square brackets around the IP as 
440341b vetinari - "chomp" DEBUG output - for logging/file
====

(I manually truncated some of the long subjects).

>  
-- 
--gh


Reply via email to