(created/git2cpp/log.md)=
# git2cpp log

```{parsed-literal}
Shows commit logs


git2cpp log [OPTIONS]


OPTIONS:
&nbsp; -h,     --help              Print this help message and exit
&nbsp;         --format TEXT       Pretty-print the contents of the commit logs in a given format,
&nbsp;                             where &lt;format&gt; can be one of full, fuller or oneline
&nbsp; -n,     --max-count INT     Limit the output to &lt;number&gt; commits.
&nbsp;         --abbrev-commit     Instead of showing the full 40-byte hexadecimal commit object
&nbsp;                             name, show a prefix that names the object uniquely. --abbrev=&lt;n&gt;
&nbsp;                             (which also modifies diff output, if it is displayed) option can
&nbsp;                             be used to specify the minimum length of the prefix.
&nbsp;         --abbrev UINT       Instead of showing the full 40-byte hexadecimal object name in
&nbsp;                             diff-raw format output and diff-tree header lines, show the
&nbsp;                             shortest prefix that is at least &lt;n&gt; hexdigits long that uniquely
&nbsp;                             refers the object.
&nbsp;         --no-abbrev-commit  Show the full 40-byte hexadecimal commit object name. This
&nbsp;                             negates --abbrev-commit, either explicit or implied by other
&nbsp;                             options such as --oneline.
&nbsp;         --oneline           This is a shorthand for --format=oneline --abbrev-commit used
&nbsp;                             together.
```
