Timeline for Git pager is less, but what is causing the output coloring?
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 20, 2017 at 10:18 | history | edited | CommunityBot |
replaced http://superuser.com/ with https://superuser.com/
|
|
| Sep 5, 2014 at 23:02 | comment | added | ysdx | Yes, LESS=FRX is added to the environment (see pager.c). | |
| Sep 5, 2014 at 13:02 | comment | added | Matt |
maybe via the LESS env var?
|
|
| Sep 5, 2014 at 12:56 | comment | added | Matt |
git outputs the colour escape code it's self. It's also written in c so adding Python would be a huge dependency. It might be able to control less via the environment
|
|
| Sep 5, 2014 at 12:46 | comment | added | Sebastian |
btw, when I run git diff the child less process is not appended by any option (neither -R nor -r). However, I don't know if git calls it in a special way and thus the args are not visible in htop.
|
|
| Sep 5, 2014 at 12:39 | comment | added | Sebastian |
the link is indeed interesting, thanks. Do you know if git is actually using pygmentize? Because it is not listed as a dependency.
|
|
| Sep 5, 2014 at 12:35 | history | answered | Matt | CC BY-SA 3.0 |