Ir para o conteúdo
ou

Software livre Brasil

 Voltar a Blog
Tela cheia

highlighting (git) patches in mutt

23 de Abril de 2009, 0:00 , por Software Livre Brasil - | Ninguém está seguindo este artigo ainda.
Visualizado 2353 vezes

This tip is useful for those who want to read the patches before even trying them into a branch. While it's possible to read them as regular text, being able to spot directly what matters helps doing it very quicker. Drop the following lines in your ~/.muttrc to highlight the relevant elements in the diff:

 

color body brightred default "^-.*"
color body brightgreen default "^[+].*"
color body brightwhite default "^diff --git.*"
color body brightwhite default "^index [a-f0-9].*"
color body brightyellow default "^@@.*"

Of course you can change the colors to match your preferences, I'm not even sure yet that these are the best colors for me. The result looks like this:

Highlighted patch in mutt


Tags deste artigo: git mutt
Fonte: /bin/view/Blogs/BlogPostAntonioTerceiro20090423141108