PATH:
usr
/
share
/
doc
/
git-1.8.3.1
PRETTY FORMATS -------------- If the commit is a merge, and if the pretty-format is not 'oneline', 'email' or 'raw', an additional line is inserted before the 'Author:' line. This line begins with "Merge: " and the sha1s of ancestral commits are printed, separated by spaces. Note that the listed commits may not necessarily be the list of the *direct* parent commits if you have limited your view of history: for example, if you are only interested in changes related to a certain directory or file. There are several built-in formats, and you can define additional formats by setting a pretty.<name> config option to either another format name, or a 'format:' string, as described below (see linkgit:git-config[1]). Here are the details of the built-in formats: * 'oneline' <sha1> <title line> + This is designed to be as compact as possible. * 'short' commit <sha1> Author: <author> <title line> * 'medium' commit <sha1> Author: <author> Date: <author date> <title line> <full commit message> * 'full' commit <sha1> Author: <author> Commit: <committer> <title line> <full commit message> * 'fuller' commit <sha1> Author: <author> AuthorDate: <author date> Commit: <committer> CommitDate: <committer date> <title line> <full commit message> * 'email' From <sha1> <date> From: <author> Date: <author date> Subject: [PATCH] <title line> <full commit message> * 'raw' + The 'raw' format shows the entire commit exactly as stored in the commit object. Notably, the SHA-1s are displayed in full, regardless of whether --abbrev or --no-abbrev are used, and 'parents' information show the true parent commits, without taking grafts nor history simplification into account. * 'format:<string>' + The 'format:<string>' format allows you to specify which information you want to show. It works a little bit like printf format, with the notable exception that you get a newline with '%n' instead of '\n'. + E.g, 'format:"The author of %h was %an, %ar%nThe title was >>%s<<%n"' would show something like this: + ------- The author of fe6e0ee was Junio C Hamano, 23 hours ago The title was >>t4119: test autocomputing -p<n> for traditional diff input.<< -------- + The placeholders are: - '%H': commit hash - '%h': abbreviated commit hash - '%T': tree hash - '%t': abbreviated tree hash - '%P': parent hashes - '%p': abbreviated parent hashes - '%an': author name - '%aN': author name (respecting .mailmap, see linkgit:git-shortlog[1] or linkgit:git-blame[1]) - '%ae': author email - '%aE': author email (respecting .mailmap, see linkgit:git-shortlog[1] or linkgit:git-blame[1]) - '%ad': author date (format respects --date= option) - '%aD': author date, RFC2822 style - '%ar': author date, relative - '%at': author date, UNIX timestamp - '%ai': author date, ISO 8601 format - '%cn': committer name - '%cN': committer name (respecting .mailmap, see linkgit:git-shortlog[1] or linkgit:git-blame[1]) - '%ce': committer email - '%cE': committer email (respecting .mailmap, see linkgit:git-shortlog[1] or linkgit:git-blame[1]) - '%cd': committer date - '%cD': committer date, RFC2822 style - '%cr': committer date, relative - '%ct': committer date, UNIX timestamp - '%ci': committer date, ISO 8601 format - '%d': ref names, like the --decorate option of linkgit:git-log[1] - '%e': encoding - '%s': subject - '%f': sanitized subject line, suitable for a filename - '%b': body - '%B': raw body (unwrapped subject and body) - '%N': commit notes - '%GG': raw verification message from GPG for a signed commit - '%G?': show "G" for a Good signature, "B" for a Bad signature, "U" for a good, untrusted signature and "N" for no signature - '%GS': show the name of the signer for a signed commit - '%GK': show the key used to sign a signed commit - '%gD': reflog selector, e.g., `refs/stash@{1}` - '%gd': shortened reflog selector, e.g., `stash@{1}` - '%gn': reflog identity name - '%gN': reflog identity name (respecting .mailmap, see linkgit:git-shortlog[1] or linkgit:git-blame[1]) - '%ge': reflog identity email - '%gE': reflog identity email (respecting .mailmap, see linkgit:git-shortlog[1] or linkgit:git-blame[1]) - '%gs': reflog subject - '%Cred': switch color to red - '%Cgreen': switch color to green - '%Cblue': switch color to blue - '%Creset': reset color - '%C(...)': color specification, as described in color.branch.* config option; adding `auto,` at the beginning will emit color only when colors are enabled for log output (by `color.diff`, `color.ui`, or `--color`, and respecting the `auto` settings of the former if we are going to a terminal). `auto` alone (i.e. `%C(auto)`) will turn on auto coloring on the next placeholders until the color is switched again. - '%m': left, right or boundary mark - '%n': newline - '%%': a raw '%' - '%x00': print a byte from a hex code - '%w([<w>[,<i1>[,<i2>]]])': switch line wrapping, like the -w option of linkgit:git-shortlog[1]. - '%<(<N>[,trunc|ltrunc|mtrunc])': make the next placeholder take at least N columns, padding spaces on the right if necessary. Optionally truncate at the beginning (ltrunc), the middle (mtrunc) or the end (trunc) if the output is longer than N columns. Note that truncating only works correctly with N >= 2. - '%<|(<N>)': make the next placeholder take at least until Nth columns, padding spaces on the right if necessary - '%>(<N>)', '%>|(<N>)': similar to '%<(<N>)', '%<|(<N>)' respectively, but padding spaces on the left - '%>>(<N>)', '%>>|(<N>)': similar to '%>(<N>)', '%>|(<N>)' respectively, except that if the next placeholder takes more spaces than given and there are spaces on its left, use those spaces - '%><(<N>)', '%><|(<N>)': similar to '% <(<N>)', '%<|(<N>)' respectively, but padding both sides (i.e. the text is centered) NOTE: Some placeholders may depend on other options given to the revision traversal engine. For example, the `%g*` reflog options will insert an empty string unless we are traversing reflog entries (e.g., by `git log -g`). The `%d` placeholder will use the "short" decoration format if `--decorate` was not already provided on the command line. If you add a `+` (plus sign) after '%' of a placeholder, a line-feed is inserted immediately before the expansion if and only if the placeholder expands to a non-empty string. If you add a `-` (minus sign) after '%' of a placeholder, line-feeds that immediately precede the expansion are deleted if and only if the placeholder expands to an empty string. If you add a ` ` (space) after '%' of a placeholder, a space is inserted immediately before the expansion if and only if the placeholder expands to a non-empty string. * 'tformat:' + The 'tformat:' format works exactly like 'format:', except that it provides "terminator" semantics instead of "separator" semantics. In other words, each commit has the message terminator character (usually a newline) appended, rather than a separator placed between entries. This means that the final entry of a single-line format will be properly terminated with a new line, just as the "oneline" format does. For example: + --------------------- $ git log -2 --pretty=format:%h 4da45bef \ | perl -pe '$_ .= " -- NO NEWLINE\n" unless /\n/' 4da45be 7134973 -- NO NEWLINE $ git log -2 --pretty=tformat:%h 4da45bef \ | perl -pe '$_ .= " -- NO NEWLINE\n" unless /\n/' 4da45be 7134973 --------------------- + In addition, any unrecognized string that has a `%` in it is interpreted as if it has `tformat:` in front of it. For example, these two are equivalent: + --------------------- $ git log -2 --pretty=tformat:%h 4da45bef $ git log -2 --pretty=%h 4da45bef ---------------------
[+]
..
[-] gitworkflows.txt
[edit]
[-] git-name-rev.txt
[edit]
[-] git-status.html
[edit]
[-] git-difftool.txt
[edit]
[-] git-blame.html
[edit]
[-] git-rebase.html
[edit]
[-] git-push.html
[edit]
[-] git-count-objects.txt
[edit]
[-] mergetools-merge.txt
[edit]
[-] git-show-index.txt
[edit]
[-] gitcredentials.txt
[edit]
[-] git-status.txt
[edit]
[-] cmds-plumbinginterrogators.txt
[edit]
[-] git.txt
[edit]
[-] COPYING
[edit]
[-] git-replace.txt
[edit]
[-] git-cvsserver.txt
[edit]
[-] git-apply.html
[edit]
[-] gitweb.html
[edit]
[-] git-rm.html
[edit]
[-] git-cvsserver.html
[edit]
[-] git-fetch.html
[edit]
[-] git-daemon.html
[edit]
[-] mailmap.txt
[edit]
[-] git-for-each-ref.html
[edit]
[-] gitk.txt
[edit]
[-] diff-format.txt
[edit]
[-] git-parse-remote.html
[edit]
[-] gittutorial-2.html
[edit]
[-] git-repack.txt
[edit]
[-] gitcvs-migration.html
[edit]
[-] gitrevisions.txt
[edit]
[-] git-ls-files.html
[edit]
[-] git-rev-parse.html
[edit]
[-] git-show-ref.html
[edit]
[-] blame-options.txt
[edit]
[-] git-rev-list.txt
[edit]
[-] git-index-pack.txt
[edit]
[-] git-credential-cache.txt
[edit]
[-] git-show-ref.txt
[edit]
[-] pretty-formats.txt
[edit]
[-] git-shortlog.txt
[edit]
[-] pull-fetch-param.txt
[edit]
[-] git-rev-list.html
[edit]
[-] git-fmt-merge-msg.html
[edit]
[-] git-clean.txt
[edit]
[-] git-notes.txt
[edit]
[-] git-count-objects.html
[edit]
[-] git-clean.html
[edit]
[-] git.html
[edit]
[-] git-show-index.html
[edit]
[-] git-fsck.html
[edit]
[-] gitrepository-layout.html
[edit]
[-] git-cvsimport.txt
[edit]
[-] git-commit.html
[edit]
[-] git-tag.html
[edit]
[-] git-reflog.txt
[edit]
[-] git-sh-i18n.txt
[edit]
[-] git-stripspace.html
[edit]
[-] gitweb.txt
[edit]
[-] gitglossary.txt
[edit]
[-] git-shell.txt
[edit]
[-] git-prune.txt
[edit]
[-] gitignore.html
[edit]
[-] git-fast-export.html
[edit]
[-] git-get-tar-commit-id.html
[edit]
[-] git-http-fetch.html
[edit]
[-] gitweb.conf.html
[edit]
[-] git-notes.html
[edit]
[-] git-update-index.html
[edit]
[-] git-mailsplit.txt
[edit]
[-] cmds-synchingrepositories.txt
[edit]
[-] git-unpack-file.txt
[edit]
[-] git-verify-tag.html
[edit]
[-] gitdiffcore.html
[edit]
[-] git-branch.txt
[edit]
[-] git-request-pull.html
[edit]
[-] git-diff-files.txt
[edit]
[-] git-log.html
[edit]
[-] git-check-ignore.html
[edit]
[-] git-checkout-index.txt
[edit]
[-] git-cherry.html
[edit]
[-] git-diff-files.html
[edit]
[-] git-receive-pack.txt
[edit]
[-] git-mktree.html
[edit]
[-] git-instaweb.html
[edit]
[-] git-merge-file.html
[edit]
[-] README
[edit]
[-] git-stage.html
[edit]
[+]
howto
[-] git-tools.html
[edit]
[-] fetch-options.txt
[edit]
[-] git-remote.txt
[edit]
[-] git-merge-base.txt
[edit]
[-] git-pull.html
[edit]
[-] git-merge-index.html
[edit]
[-] githooks.txt
[edit]
[-] git-svn.txt
[edit]
[-] git-repo-config.html
[edit]
[-] git-instaweb.txt
[edit]
[+]
contrib
[-] git-describe.html
[edit]
[-] gitattributes.html
[edit]
[-] gitcli.html
[edit]
[-] git-fast-import.txt
[edit]
[-] git-checkout.html
[edit]
[-] merge-config.txt
[edit]
[-] revisions.txt
[edit]
[-] git-gc.txt
[edit]
[-] git-credential-store.txt
[edit]
[-] git-update-server-info.txt
[edit]
[-] git-rm.txt
[edit]
[-] cmds-ancillarymanipulators.txt
[edit]
[-] git-mailsplit.html
[edit]
[-] git-merge-one-file.txt
[edit]
[-] git-help.html
[edit]
[-] git-sh-i18n--envsubst.html
[edit]
[-] git-reflog.html
[edit]
[-] git-http-fetch.txt
[edit]
[-] git-check-ref-format.html
[edit]
[-] git-commit.txt
[edit]
[-] git-p4.txt
[edit]
[-] git-rev-parse.txt
[edit]
[-] git-check-ref-format.txt
[edit]
[-] git-merge-tree.html
[edit]
[-] git-read-tree.txt
[edit]
[-] git-check-attr.html
[edit]
[-] git-mailinfo.txt
[edit]
[-] git-mv.html
[edit]
[-] git-quiltimport.txt
[edit]
[-] git-daemon.txt
[edit]
[-] git-ls-files.txt
[edit]
[-] git-web--browse.txt
[edit]
[-] git-patch-id.txt
[edit]
[-] git-bisect-lk2009.html
[edit]
[-] git-stripspace.txt
[edit]
[-] gitmodules.html
[edit]
[-] git-archive.html
[edit]
[-] git-gc.html
[edit]
[-] git-gui.txt
[edit]
[-] pretty-options.txt
[edit]
[-] git-column.txt
[edit]
[-] git-fetch-pack.txt
[edit]
[-] git-log.txt
[edit]
[-] gitworkflows.html
[edit]
[-] gitcore-tutorial.html
[edit]
[-] git-prune.html
[edit]
[-] git-cvsexportcommit.txt
[edit]
[-] git-rerere.txt
[edit]
[-] gitremote-helpers.html
[edit]
[-] git-quiltimport.html
[edit]
[-] git-fsck.txt
[edit]
[-] git-peek-remote.txt
[edit]
[-] git-imap-send.txt
[edit]
[-] gitk.html
[edit]
[-] git-hash-object.html
[edit]
[-] git-push.txt
[edit]
[-] git-blame.txt
[edit]
[-] git-upload-archive.html
[edit]
[-] git-replace.html
[edit]
[+]
technical
[-] git-upload-pack.html
[edit]
[-] git-sh-i18n.html
[edit]
[-] git-init.html
[edit]
[-] git-bisect.txt
[edit]
[-] git-http-push.html
[edit]
[-] git-diff-index.html
[edit]
[-] git-lost-found.html
[edit]
[-] git-http-backend.html
[edit]
[-] date-formats.txt
[edit]
[-] git-mailinfo.html
[edit]
[-] git-show-branch.html
[edit]
[-] gitnamespaces.txt
[edit]
[-] git-cherry.txt
[edit]
[-] git-grep.html
[edit]
[-] git-repo-config.txt
[edit]
[-] git-ls-tree.html
[edit]
[-] git-bisect.html
[edit]
[-] git-send-email.txt
[edit]
[-] git-credential-store.html
[edit]
[-] git-rerere.html
[edit]
[-] git-var.html
[edit]
[-] git-remote.html
[edit]
[-] git-tools.txt
[edit]
[-] git-pack-objects.txt
[edit]
[-] git-credential-cache--daemon.html
[edit]
[-] git-update-index.txt
[edit]
[-] git-gui.html
[edit]
[-] git-svn.html
[edit]
[-] gitweb.conf.txt
[edit]
[-] gitignore.txt
[edit]
[-] git-http-backend.txt
[edit]
[-] howto-index.html
[edit]
[-] git-stash.html
[edit]
[-] git-mergetool.html
[edit]
[-] git-relink.txt
[edit]
[-] git-for-each-ref.txt
[edit]
[-] cmds-foreignscminterface.txt
[edit]
[-] git-shortlog.html
[edit]
[-] cmds-ancillaryinterrogators.txt
[edit]
[-] git-credential.txt
[edit]
[-] git-mergetool--lib.html
[edit]
[-] git-submodule.txt
[edit]
[-] git-repack.html
[edit]
[-] git-merge.html
[edit]
[-] git-show.txt
[edit]
[-] gitcvs-migration.txt
[edit]
[-] diff-options.txt
[edit]
[-] git-sh-setup.html
[edit]
[-] git-config.html
[edit]
[-] git-annotate.txt
[edit]
[-] gitglossary.html
[edit]
[-] git-pull.txt
[edit]
[-] git-mergetool--lib.txt
[edit]
[-] rev-list-options.txt
[edit]
[-] git-fetch.txt
[edit]
[-] gitcli.txt
[edit]
[-] git-fsck-objects.html
[edit]
[-] git-stash.txt
[edit]
[-] git-pack-refs.html
[edit]
[-] git-reset.txt
[edit]
[-] cmds-mainporcelain.txt
[edit]
[-] git-hash-object.txt
[edit]
[-] gitmodules.txt
[edit]
[-] git-cat-file.html
[edit]
[-] git-bisect-lk2009.txt
[edit]
[-] git-receive-pack.html
[edit]
[-] git-p4.html
[edit]
[-] mergetools-diff.txt
[edit]
[-] git-cvsimport.html
[edit]
[-] gitremote-helpers.txt
[edit]
[-] git-column.html
[edit]
[-] git-prune-packed.html
[edit]
[-] glossary-content.txt
[edit]
[+]
RelNotes
[-] git-rebase.txt
[edit]
[-] git-config.txt
[edit]
[-] git-pack-refs.txt
[edit]
[-] git-merge-index.txt
[edit]
[-] git-add.html
[edit]
[-] gitrevisions.html
[edit]
[-] git-cherry-pick.txt
[edit]
[-] git-symbolic-ref.txt
[edit]
[-] git-annotate.html
[edit]
[-] git-clone.txt
[edit]
[-] git-parse-remote.txt
[edit]
[-] git-diff.html
[edit]
[-] git-diff-index.txt
[edit]
[-] git-mergetool.txt
[edit]
[-] git-update-ref.txt
[edit]
[-] git-lost-found.txt
[edit]
[-] git-tar-tree.txt
[edit]
[-] git-update-server-info.html
[edit]
[-] git-upload-pack.txt
[edit]
[-] git-commit-tree.txt
[edit]
[-] git-clone.html
[edit]
[-] git-help.txt
[edit]
[-] git-send-email.html
[edit]
[-] everyday.html
[edit]
[-] git-index-pack.html
[edit]
[-] git-mktree.txt
[edit]
[-] git-fast-import.html
[edit]
[-] git-bundle.txt
[edit]
[-] git-am.txt
[edit]
[-] gittutorial-2.txt
[edit]
[-] git-remote-testgit.html
[edit]
[-] git-diff-tree.txt
[edit]
[-] cmds-synchelpers.txt
[edit]
[-] git-diff-tree.html
[edit]
[-] git-prune-packed.txt
[edit]
[-] cmds-plumbingmanipulators.txt
[edit]
[-] howto-index.txt
[edit]
[-] git-tag.txt
[edit]
[-] git-send-pack.html
[edit]
[-] git-credential-cache--daemon.txt
[edit]
[-] config.txt
[edit]
[-] git-remote-fd.html
[edit]
[-] git-revert.txt
[edit]
[-] gitdiffcore.txt
[edit]
[-] git-fast-export.txt
[edit]
[-] git-upload-archive.txt
[edit]
[-] git-diff.txt
[edit]
[-] git-merge-one-file.html
[edit]
[-] git-archive.txt
[edit]
[-] diff-generate-patch.txt
[edit]
[-] git-http-push.txt
[edit]
[-] git-init-db.html
[edit]
[-] git-cat-file.txt
[edit]
[-] git-fetch-pack.html
[edit]
[-] git-whatchanged.html
[edit]
[-] git-cvsexportcommit.html
[edit]
[-] git-patch-id.html
[edit]
[-] git-name-rev.html
[edit]
[-] git-apply.txt
[edit]
[-] gittutorial.txt
[edit]
[-] git-shell.html
[edit]
[-] git-verify-pack.html
[edit]
[-] git-write-tree.html
[edit]
[-] git-request-pull.txt
[edit]
[-] git-remote-testgit.txt
[edit]
[-] merge-strategies.txt
[edit]
[-] git-write-tree.txt
[edit]
[-] git-init-db.txt
[edit]
[-] git-revert.html
[edit]
[-] git-remote-ext.html
[edit]
[-] urls.txt
[edit]
[-] git-credential.html
[edit]
[-] git-peek-remote.html
[edit]
[-] git-stage.txt
[edit]
[-] git-am.html
[edit]
[-] git-verify-pack.txt
[edit]
[-] git-filter-branch.txt
[edit]
[-] git-unpack-objects.html
[edit]
[-] git-format-patch.html
[edit]
[-] diff-config.txt
[edit]
[-] git-remote-helpers.html
[edit]
[-] git-pack-redundant.txt
[edit]
[-] git-verify-tag.txt
[edit]
[-] git-describe.txt
[edit]
[-] git-remote-fd.txt
[edit]
[-] git-bundle.html
[edit]
[-] git-show.html
[edit]
[-] gitattributes.txt
[edit]
[-] gittutorial.html
[edit]
[-] git-ls-tree.txt
[edit]
[-] git-get-tar-commit-id.txt
[edit]
[-] git-branch.html
[edit]
[-] merge-options.txt
[edit]
[-] git-filter-branch.html
[edit]
[-] i18n.txt
[edit]
[-] git-check-ignore.txt
[edit]
[-] git-tar-tree.html
[edit]
[-] git-sh-i18n--envsubst.txt
[edit]
[-] git-whatchanged.txt
[edit]
[-] gitcore-tutorial.txt
[edit]
[-] gitrepository-layout.txt
[edit]
[-] git-mktag.txt
[edit]
[-] git-fmt-merge-msg.txt
[edit]
[-] git-ls-remote.html
[edit]
[-] git-citool.html
[edit]
[-] git-citool.txt
[edit]
[-] user-manual.html
[edit]
[-] git-pack-redundant.html
[edit]
[-] git-mv.txt
[edit]
[-] git-submodule.html
[edit]
[-] git-grep.txt
[edit]
[-] git-unpack-file.html
[edit]
[-] git-mktag.html
[edit]
[-] git-update-ref.html
[edit]
[-] git-symbolic-ref.html
[edit]
[-] githooks.html
[edit]
[-] git-pack-objects.html
[edit]
[-] git-cherry-pick.html
[edit]
[-] everyday.txt
[edit]
[-] git-unpack-objects.txt
[edit]
[-] git-read-tree.html
[edit]
[-] git-show-branch.txt
[edit]
[-] git-merge-tree.txt
[edit]
[-] git-merge.txt
[edit]
[-] git-ls-remote.txt
[edit]
[-] git-merge-base.html
[edit]
[-] git-imap-send.html
[edit]
[-] gitcredentials.html
[edit]
[-] git-commit-tree.html
[edit]
[-] git-format-patch.txt
[edit]
[-] git-web--browse.html
[edit]
[-] git-sh-setup.txt
[edit]
[-] git-var.txt
[edit]
[-] gitnamespaces.html
[edit]
[-] git-add.txt
[edit]
[-] git-checkout-index.html
[edit]
[-] docbook-xsl.css
[edit]
[-] git-merge-file.txt
[edit]
[-] git-reset.html
[edit]
[-] git-fsck-objects.txt
[edit]
[-] git-check-attr.txt
[edit]
[-] git-difftool.html
[edit]
[-] urls-remotes.txt
[edit]
[-] git-send-pack.txt
[edit]
[-] git-remote-ext.txt
[edit]
[-] git-checkout.txt
[edit]
[-] git-relink.html
[edit]
[-] user-manual.txt
[edit]
[-] sequencer.txt
[edit]
[-] git-credential-cache.html
[edit]
[-] cmds-purehelpers.txt
[edit]
[-] git-init.txt
[edit]