blob: bff94991b68aaca5a81eae4e6681f3431aa6b9ac [file] [log] [blame]
Junio C Hamano0430e3a2007-05-15 03:13:171--pretty[='<format>']::
Junio C Hamano0a235222009-03-06 08:21:092--format[='<format>']::
Junio C Hamano0430e3a2007-05-15 03:13:173
Junio C Hamanoa3770f92007-07-25 08:53:334Pretty-print the contents of the commit logs in a given format,
Junio C Hamano0430e3a2007-05-15 03:13:175where '<format>' can be one of 'oneline', 'short', 'medium',
6'full', 'fuller', 'email', 'raw' and 'format:<string>'.
Junio C Hamanoa3770f92007-07-25 08:53:337When omitted, the format defaults to 'medium'.
Junio C Hamano86bcccc2008-03-08 09:33:558+
9Note: you can specify the default pretty format in the repository
10configuration (see linkgit:git-config[1]).
Junio C Hamano0430e3a2007-05-15 03:13:1711
Junio C Hamanoee695f22007-06-21 00:35:3612--abbrev-commit::
13Instead of showing the full 40-byte hexadecimal commit object
Junio C Hamano6efe3022009-01-13 16:47:5614name, show only a partial prefix. Non default number of
Junio C Hamanoee695f22007-06-21 00:35:3615digits can be specified with "--abbrev=<n>" (which also modifies
16diff output, if it is displayed).
17+
18This should make "--pretty=oneline" a whole lot more readable for
19people using 80-column terminals.
20
Junio C Hamano0a235222009-03-06 08:21:0921--oneline::
22This is a shorthand for "--pretty=oneline --abbrev-commit"
23used together.
24
Junio C Hamano0430e3a2007-05-15 03:13:1725--encoding[=<encoding>]::
26The commit objects record the encoding used for the log message
27in their encoding header; this option can be used to tell the
28command to re-code the commit log message in the encoding
29preferred by the user. For non plumbing commands this
30defaults to UTF-8.