Thread (50 messages) 50 messages, 3 authors, 2017-08-04

Re: [PATCH 2/7] git.c: let builtins opt for handling `pager.foo` themselves

flat view

From: Jeff King <hidden>
Date: 2017-07-11 13:54:36

On Tue, Jul 11, 2017 at 03:46:08PM +0200, Martin Ågren wrote:
quoted
Can this ever trigger in execv_dashed_external()? We should only get
there if get_builtin() returned NULL in the first place. Otherwise, we'd
run and exited via handle_builtin().
I can trigger it with this:

$ git -c pager.tag="echo paging" -c pager.tag.list=no -c alias.t=tag t -l

where the alias is what triggers it and the two pager-configurations
demonstrate the effect.
Interesting. As you noted below, I think the dashed external we exec
should be choosing whether to run the pager. I suspect what's happening
is that execv_dashed_external() says "a-ha, we're running 'tag', and I
know how to check its pager config". But IMHO that is wrong in the first
place (but it just never really made a difference until your series).

That's just a guess, though. I didn't dig.

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