git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add the possibility to specify a default help format

From
Jeff King <peff@peff.net>
Date
Jun 6, 2012, 13:53 UTC
Message-ID
<20120606135353.GD2597@sigill.intra.peff.net>
In-Reply-To
<1338987397-7376-1-git-send-email-vfr@lyx.org>
On Wed, Jun 06, 2012 at 12:56:37PM +0000, Vincent van Ravesteijn wrote:
Show 9 quoted lines
> At the moment, the default help format (i.e. the format that is chosen if
> 'git help xxx' is called without a help format parameter) is defined by
> the switch to be 'man'. However, on different platforms the preferred
> format might differ. For example, on Windows there is no man viewer, so we
> would prefer html.
> 
> This patch adds the possibility to choose a default help format on
> compilation by defining DEFAULT_HELP_FORMAT. If it is not specified the
> default is still 'man'.
Makes sense to me.
> ---
>  builtin/help.c |    8 +++++++-
>  1 files changed, 7 insertions(+), 1 deletions(-)
Should there be some minor infrastructure in the Makefile so you can do:
  make DEFAULT_HELP_FORMAT=man
rather than:
  make CFLAGS='-DDEFAULT_HELP_FORMAT=\"man\"'

(and the Makefile would be a good place to advertise this build knob, too)?

-Peff
Previous: Vincent van RavesteijnNext: vfr@lyx.org
Message 2 of 8 in “Add the possibility to specify a default help format”
  1. Add the possibility to specify a default help formatVincent van Ravesteijn, Jun 6, 2012
  2. Jeff KingJun 6, 2012
  3. Add the DEFAULT_HELP_FORMAT option to Makefilevfr@lyx.org, Jun 6, 2012
  4. Junio C HamanoJun 6, 2012
  5. Vincent van RavesteijnJun 6, 2012
  6. Junio C HamanoJun 6, 2012
  7. [PATCHv2] Add the possibility to specify a default help formatVincent van Ravesteijn, Jun 6, 2012
  8. Junio C HamanoJun 6, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.