[PATCH v4 5/6] Documentation: move description of -s, --no-patch to diff-options.txt
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Jul 16, 2013, 08:05 UTC
- Message-ID
- <1373961940-31614-6-git-send-email-Matthieu.Moy@imag.fr>
- In-Reply-To
- <1373961940-31614-1-git-send-email-Matthieu.Moy@imag.fr>
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> --- Documentation/diff-options.txt | 5 +++++ Documentation/rev-list-options.txt | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt index 87e92d6..bbed2cd 100644 --- a/Documentation/diff-options.txt +++ b/Documentation/diff-options.txt @@ -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 diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt index c128a85..e632e85 100644 --- a/Documentation/rev-list-options.txt +++ b/Documentation/rev-list-options.txt @@ -849,8 +849,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[]
-- 1.8.3.1.495.g13f33cf.dirty