Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH] Replace git --paginate by git --pager[=PAGER_CMD].

From: David Kastrup <hidden>
Date: 2016-06-15 22:43:30

Matthieu Moy [off-list ref] writes:
Johannes Schindelin [off-list ref] writes:
quoted
Personally, I like to read "git --paginate log" better than to read "git 
--pager log".  So I would not unnecessarily deprecate --paginate.  It's 
not like it hurts or something.
It doesn't "hurt", but having several options to do the same thing is
useless and confusing (someone reading here about --paginate and there
about --pager may not immediately notice that one is an alias for the
other).

Anyway, how often do you type or read "git --paginate log"?
Since it is the default anyway...

Maybe one should have a way to tell git "don't use a pager by default,
but _if_ someone says --pager, _then_ use the following pager".

If one has to set the pager to "cat" to disable paging, using --pager
will not exactly be impressive.

So maybe --no-pager/--pager (or an equivalent config file setting)
should not tamper with the setting of GIT_PAGER, but rather set/reset
an independent flag.

-- 
David Kastrup
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help