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

Re: [PATCH] git fast-export: add --no-data option

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 28, 2009, 08:01 UTC
Message-ID
<alpine.DEB.1.00.0907281000360.8306@pacific.mpi-cbg.de>
In-Reply-To
<4A6E7A80.9040809@gmail.com>
Hi,
On Mon, 27 Jul 2009, Stephen Boyd wrote:
Show 27 quoted lines
> Johannes Schindelin wrote:
> >
> > [PATCH] parse-opt: optionally show "--no-" option string
> >
> > It is usually better to have positive options, to avoid confusing 
> > double negations.  However, sometimes it is desirable to show the 
> > negative option in the help.
> >
> > Introduce the flag PARSE_OPT_NEGHELP to do that.
> 
> Perhaps with this documentation throw in?
> 
> diff --git a/parse-options.h b/parse-options.h
> index 90e577d..14162e9 100644
> --- a/parse-options.h
> +++ b/parse-options.h
> @@ -81,6 +81,9 @@ typedef int parse_opt_cb(const struct option *, const char *arg, int unset);
>   *   PARSE_OPT_LITERAL_ARGHELP: says that argh shouldn't be enclosed in brackets
>   *                             (i.e. '<argh>') in the help message.
>   *                             Useful for options with multiple parameters.
> + *   PARSE_OPT_NEGHELP: says that the long option should always be shown with
> + *                     the --no prefix in the usage message. Sometimes
> + *                     useful for users of OPTION_NEGBIT.
>   *
>   * `callback`::
>   *   pointer to the callback to use for OPTION_CALLBACK.
> 
Thanks.

Ciao, Dscho

Previous: Stephen Boyd
Message 9 of 9 in “git fast-export: add --no-data option”
  1. git fast-export: add --no-data optionGeoffrey Irving, Jul 25, 2009
  2. Johannes SchindelinJul 25, 2009
  3. Junio C HamanoJul 25, 2009
  4. Johannes SchindelinJul 25, 2009
  5. Geoffrey IrvingJul 27, 2009
  6. Johannes SchindelinJul 27, 2009
  7. git fast-export: add --no-data optionGeoffrey Irving, Jul 28, 2009
  8. Stephen BoydJul 28, 2009
  9. Johannes SchindelinJul 28, 2009

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.