Re: To page or not to page | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Jeff King <peff@xxxxxxxx> writes:
> So how about this:
>
> - keep a global use_pager = { 0 (explicit no), 1 (explicit yes), -1
> (unknown) }
>
> - if git-foo, lookup config for pager.foo
>
> - otherwise we have "git [options] foo"; look for -p / --no-pager; if
> none found, then lookup config for "foo"
>
> - before proceeding further, "commit" the pager choice by running it
> (if 1), munging GIT_PAGER=cat (if 0), or doing nothing (if -1)
>
> - before handling an internal command, if use_pager is -1 and the
> command defaults to a pager, we run it then
>
> The patch below implements this.
>
> It would be nice to actually defer running the pager until we are about
> to run a git command. I.e., never "commit" to the pager until we are
> actually running an internal command or exec'ing an external command.
> That way it would be safe to make an alias that called "--no-pager"
> (which is currently disallowed).
Ok, I agree that this is a less nice (as you mention ablve) but a workable
compromise with the reality.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Newbies FAQ] [Kernel List] [Site Home] [Free Online Dating] [Gcc Help] [IETF Annouce] [DCCP] [Netdev] [Networking] [Security] [V4L] [Bugtraq] [Free Online Dating] [Rubini] [Photo] [Yosemite] [MIPS Linux] [ARM Linux] [Linux Security] [Linux RAID] [Linux SCSI] [DDR & Rambus] [Linux Resources]