Documentation: move description of -s, --no-patch to diff-options.txt
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Tue, 16 Jul 2013 08:05:39 +0000 (10:05 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Jul 2013 00:50:56 +0000 (17:50 -0700)
Technically, "-s, --no-patch" is implemented in diff.c ("git diff
--no-patch" is essentially useless, but valid). From the user point of
view, this allows the documentation to show up in "git show --help",
which is one of the most useful use of the option.

While we're there, add a sentence explaining why the option can be
useful.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-options.txt
Documentation/rev-list-options.txt
index 104579dc75128811e475d408035569ac09f3283b..fe6a1cb4ebcedcc6835b26c04c61719176472f27 100644 (file)
@@ -26,6 +26,11 @@ ifndef::git-format-patch[]
        {git-diff? This is the default.}
 endif::git-format-patch[]
 
+-s::
+--no-patch::
+       Suppress diff output. Useful for commands like `git show` that
+       show the patch by default, or to cancel the effect of `--patch`.
+
 -U<n>::
 --unified=<n>::
        Generate diffs with <n> lines of context instead of
index 1acef370d17707bb1058378ca19a7b81472fc8f9..c23688a4c00d7f2446a1ada5abc24811a010b77b 100644 (file)
@@ -837,8 +837,4 @@ options may be given. See linkgit:git-diff-files[1] for more options.
 -t::
 
        Show the tree objects in the diff output. This implies '-r'.
-
--s::
---no-patch::
-       Suppress diff output.
 endif::git-rev-list[]