Summary: | git использует less без параметра -F | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | makise-homura <Igor.A.Molchanov> |
Component: | git | Assignee: | placeholder <placeholder> |
Status: | NEW --- | QA Contact: | qa-sisyphus |
Severity: | normal | ||
Priority: | P5 | CC: | glebfm, ldv, legion, mike, placeholder |
Version: | unstable | ||
Hardware: | x86 | ||
OS: | Linux |
Description
makise-homura
2022-03-09 23:02:59 MSK
git(1): GIT_PAGER This environment variable overrides $PAGER. If it is set to an empty string or to the value "cat", Git will not launch a pager. See also the core.pager option in git-config(1). git-config(1): core.pager Text viewer for use by Git commands (e.g., less). The value is meant to be interpreted by the shell. The order of preference is the $GIT_PAGER environment variable, then core.pager configuration, then $PAGER, and then the default chosen at compile time (usually less). When the LESS environment variable is unset, Git sets it to RS (if LESS environment variable is set, Git does not change it at all). If you want to selectively override Git’s default setting for LESS, you can set core.pager to e.g. less -X. This will be passed to the shell by Git, which will translate the final command to LESS=RS less -X. The environment does not set the X option but the command line does, instructing less to truncate long lines. Similarly, setting core.pager to less -+F will deactivate the F option specified by the environment from the command-line, deactivating the "quit if one screen" behavior of less. One can specifically activate some flags for particular commands: for example, setting pager.blame to less -X enables line truncation only for git blame. Оно-то да, но из коробки и впрямь хорошо бы в PAGER и MANPAGER (а может, и сразу в гитовом core.pager) видеть less -F. Попробовал и уже привыкаю. О вкусах не спорят. :) |