From: Matthieu Moy Date: Fri, 07 Oct 2011 14:48:35 GMT Subject: Re: [PATCH] show git tag output in pager Message-ID: In-Reply-To: <20111007144438.GA30318@sigill.intra.peff.net> Jeff King writes: > On Mon, Oct 03, 2011 at 02:57:09PM +0200, Matthieu Moy wrote: > >> I like the try_subcommand_pager idea. Ideally, there would also be a >> nice mechanism to set defaults for subcommands, so that "git tag >> " does the right thing without configuration. > > That's easy enough. Something like the patch below? It may have been better with a big centralized array of configurations like static struct cmd_struct commands[] = { { "add", cmd_add, RUN_SETUP | NEED_WORK_TREE }, ... in git.c, but if we have only a few instances of this, your system is probably fine. I like it. -- Matthieu Moy http://www-verimag.imag.fr/~moy/