Information Technology Reference
In-Depth Information
Value Description
oneline The name and the comment printed in one line.
short
The name, the author, and the comment
Same as short but augmented with the revision's date
medium
The name, the author, the committer, and the comment
full
The name, the author, the author's date, the committer, the commit's date, and the com-
ment
fuller
Same as short in email format
email
Low-level revision's information: the name, the tree, the parent revision's name, the au-
thor, and the committer with timestamps
raw
format
User-defined format
The parameters shown in Table 2-3 can be passed to a git log command as:
$ git log --pretty=oneline
$ git log --pretty=short
$ git log --pretty=raw
The value --pretty=oneline can be shortened to:
$ git log --oneline
Additional parameters that influence the format are:
--abbrev-commit —this option turns on abbreviations.
--abbrev=n —this option sets the length of the abbreviated names.
--decorate —this option includes tags and branches for each revi-
sion.
The shortest possible abbreviation has to contain four characters. Thus, the minimal
value for --abbrev is four:
$ git log --abbrev-commit --abbrev=4
Hint The parameter --oneline abbreviates SHA-1 to seven characters.
Search WWH ::




Custom Search