How can I get git log --graph
to print using column unit separators?
I would like the messages to line up vertically, rather than being indented by the graph.
Example command to print the branch graph, author name, and message:
git log --graph --pretty=format:'%an %s'
The output is indented like this:
* Ann Merge ...
|\
| * Bob Merge ..
| |\
| | | Catherine Build feature
My goal is a column layout like this:
* Ann Merge ...
|\
| * Bob Merge ..
| |\
| | | Catherine Build feature
If possible I would like to use column unit separators, such as the ASCII character \031
also known as \x1F
.
I'm adding a bounty for any solution that is pure git, i.e. that does not require piping to Unix commands such as column, sed, awk, pr, etc.