"log --pretty=format:" language
From: Teemu Likonen <hidden>
Date: 2016-06-15 22:45:13
Jeff King wrote (2008-08-20 14:00 -0400):
There is a lot of room for discussion here.
For example:
- what should %d show? Right now it shows each decoration, split by
commas. It doesn't show the enclosing parentheses automatically.
Is this too strict? Should there be some way of pulling out
individual decorations from the list, or specifying a different
delimiter? If so, probably that should be part of a general
improvement in the format expansion macro language.
If such "general improvement" takes place I'd like to point out (most
likely old news, but anyway) that %b can't be indented in practical
sense. For example, the command
git log --pretty=format:%x09%s%n%n%x09%b -1 3a634dc
prints this:
Add hints to revert documentation about other ways to undo changes
Based on its name, people may read the 'git revert' documentation when
they want to undo local changes, especially people who have used other
SCM's. 'git revert' may not be what they had in mind, but git
provides several other ways to undo changes to files. We can help
them by pointing them towards the git commands that do what they might
want to do.
[...]