git - Greple git module
greple -Mgit ...
App::Greple::git is a greple module to handle git output.
–color-blame-line, –color-blame
–color-blame-label
Read git-blame(1) output and apply unique color for each commit id. Option –color-blame and –color-blame-line colorize whole line, while –color-blame-label does only labels.
Set $HOME/.gitconfig
like this:
[pager]
blame = greple -Mgit --color-blame-line | env LESSANSIENDCHARS=mK less -cR
LESS
LESSANSIENDCHARS
Since greple produces ANSI Erase Line terminal sequence, it is convenient to set less command understand them.
LESS=-cR
LESSANSIENDCHARS=mK
$ cpanm App::Greple::git
App::sdif: git diff support
Kazumasa Utashiro
Copyright 2021-2022 Kazumasa Utashiro.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.