[neomutt-devel] git mailmaps

Guillaume Brogi gui-gui at netcourrier.com
Sat Jun 10 20:52:16 CEST 2017


Thanks for the mailmaps. Looks like a lot of effort.
For those interested, here are the log formats I use:
[alias]
	log = log --decorate --pretty
	logtree = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
	logtreefull = log --color --graph --decorate --all --format=format:'%C(auto)%h %d%n %C(bold magenta)%an %C(magenta)<%ae>%C(auto)%n %C(green)%ad%C(auto)%n   %C(bold white)%s%C(auto)%n%+b'

Cheers,

-- 
Guillaume

On Tue, Jun 06, 2017 at 12:24:07PM +0100, Richard Russon wrote:
> I only briefly mentioned that the mailmap affects git log, too.
> 
> If you use the %aN (author name) and %aE (author email) formatting
> strings, then the fields will be looked-up in the mailmap.
> 
> The internet has thousands of guides and examples to git aliases and
> logging, but here's a simple example.  Add this to your git config:
> 
> [alias]
>     ln = log --format=named
>     lc = log --format=column
> [pretty]
>     named = %C(204)%h%Creset %s %C(white dim)(%aN)%Creset
>     column = %C(204)%h% C(white dim)%<(12,trunc)%aN%Creset %s
> [mailmap]
> 	file = ~/management/git/mailmap-nick
> 
> $ git ln
> 
> e4fed67 docs: remove reference to non-existent file (tsuyubo)
> 6705a39 Fix crash if no from is set or founds (bitstreamout)
> c499ed0 Fix typos in 'color compose' (flatcap)
> f9313b1 correct spelling mistake (edwardbetts)
> 05b4940 correct spelling mistake (edwardbetts)
> 044cc65 fix ifdef command (flatcap)
> 065e66f unbind mappings before overwriting in vim-keys (pigmonkey)
> 0d8ca5b build: allow xsltproc and w3m calls to fail (l2dy)
> 
> $ git lc
> 
> e4fed67 tsuyubo      docs: remove reference to non-existent file
> 6705a39 bitstreamout Fix crash if no from is set or founds
> c499ed0 flatcap      Fix typos in 'color compose'
> f9313b1 edwardbetts  correct spelling mistake
> 05b4940 edwardbetts  correct spelling mistake
> 044cc65 flatcap      fix ifdef command
> 065e66f pigmonkey    unbind mappings before overwriting in vim-keys
> 0d8ca5b l2dy         build: allow xsltproc and w3m calls to fail
> 
> Feel free to share your favourite log format.
> 
> Rich / FlatCap
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.neomutt.org/pipermail/neomutt-devel-neomutt.org/attachments/20170610/c2b83447/attachment.sig>


More information about the neomutt-devel mailing list