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

Re: [PATCH] Document the --no-gui option in difftool

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 6, 2017, 18:53 UTC
Message-ID
<xmqqa89z2ls1.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170206034118.GA29517@arch-attack.localdomain>
Denton Liu <liu.denton@gmail.com> writes:
Show 17 quoted lines
> diff --git a/Documentation/git-difftool.txt b/Documentation/git-difftool.txt
> index 224fb3090..a2661d9cc 100644
> --- a/Documentation/git-difftool.txt
> +++ b/Documentation/git-difftool.txt
> @@ -87,9 +87,11 @@ instead.  `--no-symlinks` is the default on Windows.
>  
>  -g::
>  --gui::
> +--no-gui::
>  	When 'git-difftool' is invoked with the `-g` or `--gui` option
>  	the default diff tool will be read from the configured
> -	`diff.guitool` variable instead of `diff.tool`.
> +	`diff.guitool` variable instead of `diff.tool`. The `--no-gui`
> +	option can be used to override this setting.
>  
>  --[no-]trust-exit-code::
>  	'git-difftool' invokes a diff tool individually on each file.

Reading the whole of this file before applying this patch, I notice that we have descriptions of negative forms only for some but not all options. "--[no-]symlinks" and "--[no-]trust-exit-code" are already there, but not this one.

Shouldn't the patch be more like
    ---gui::
    +--[no-]gui::
to be consistent with its existing friends, though?
Previous: Denton Liu
Message 2 of 2 in “Document the --no-gui option in difftool”
  1. Document the --no-gui option in difftoolDenton Liu, Feb 6, 2017
  2. Junio C HamanoFeb 6, 2017

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.