git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Frans Klaver <fransklaver@gmail.com>,
	Alexey Shumkin <Alex.Crezoff@gmail.com>,
	git@vger.kernel.org
Subject: Re: BUG. Git config pager when --edit
Date: Mon, 7 Nov 2011 12:18:00 -0500	[thread overview]
Message-ID: <20111107171800.GA3621@sigill.intra.peff.net> (raw)
In-Reply-To: <7vpqh327ds.fsf@alter.siamese.dyndns.org>

On Mon, Nov 07, 2011 at 09:02:23AM -0800, Junio C Hamano wrote:

> Jeff King <peff@peff.net> writes:
> 
> > I should probably polish and submit the patch here:
> >
> >   http://thread.gmane.org/gmane.comp.version-control.git/182238/focus=182475
> 
> I was actually hoping that you won't go that route, but the route to push
> further to decide/spawn pager as late as possible. Clearly no sane person
> would want to run --edit subcommand under pager and "pager.config = less"
> should just be ignored in such a case.

The problem with that is that it dumps the responsibility for running
the pager to every subcommand. For builtins, we can have a flag that
says "respect the pager.log config" or "foo will handle this itself;
don't respect pager.tag".

But what about externals? If "pager.stash" does nothing in git.c, and
leaves it to "git-stash.sh" to start the pager if and when it's
appropriate, then what about my personal "git-foo" that I drop into my
PATH? Now I can't use "config.foo" without carrying code to do so in my
external command.

Maybe that's an OK tradeoff. But it's more of a pain for existing
scripts, and it's not backwards compatible. What do you think?

-Peff

  reply	other threads:[~2011-11-07 17:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-07 13:26 BUG. Git config pager when --edit Alexey Shumkin
2011-11-07 13:43 ` Frans Klaver
2011-11-07 16:42   ` Jeff King
2011-11-07 17:02     ` Junio C Hamano
2011-11-07 17:18       ` Jeff King [this message]
2011-11-07 20:45         ` Frans Klaver
2011-11-07 14:54 ` how to merge sub directory or file? Emily
2011-11-07 15:37   ` Konstantin Khomoutov
2011-11-08  7:08     ` Emily Ren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111107171800.GA3621@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=Alex.Crezoff@gmail.com \
    --cc=fransklaver@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).