Skip to contentSkip to conversation

Document the --no-gui option in difftool

PATCH Superseded Denton Liu 2 participants 2 messages Feb 6, 2017 Documentation

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Denton Liu

author
#0 lore raw

PATCH 1/1 Document the --no-gui option in difftool

Prior to this, the --no-gui option was not documented in the manpage. This commit introduces this into the manpage

---
 Documentation/git-difftool.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/git-difftool.txt +3 -1
index 224fb3090..a2661d9cc 100644
@@ -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.
Signature · 1 line
2.12.0.rc0.208.g81c5d00b2
#1 lore raw
Quoted 7 lines · Denton Liu
Documentation/git-difftool.txt +0 -0
index 224fb3090..a2661d9cc 100644
@@ -87,9 +87,11 @@ instead.  `--no-symlinks` is the default on Windows.
 
 -g::

Documentation/git-difftool.txt instead. `--no-symlinks` is the default on Windows. · line 97

Quoted 10 lines
Documentation/git-difftool.txt +3 -1
 --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?