Skip to content

Commit b73a1bc

Browse files
sunshinecogitster
authored andcommitted
git-format-patch.txt: don't show -s as shorthand for multiple options
git-format-patch recognizes -s as shorthand only for --signoff, however, its documentation shows -s as shorthand for both --signoff and --no-patch. Resolve this confusion by suppressing the bogus -s shorthand for --no-patch. While here, also avoid showing the --no-patch option in git-format-patch documentation since it doesn't make sense to ask to suppress the patch while at the same time explicitly asking to format the patch (which, after all, is the purpose of git-format-patch). Reported-by: Kevin Brodsky <[email protected]> Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7654286 commit b73a1bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/diff-options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ ifndef::git-format-patch[]
2626
ifdef::git-diff[]
2727
This is the default.
2828
endif::git-diff[]
29-
endif::git-format-patch[]
3029

3130
-s::
3231
--no-patch::
3332
Suppress diff output. Useful for commands like `git show` that
3433
show the patch by default, or to cancel the effect of `--patch`.
34+
endif::git-format-patch[]
3535

3636
-U<n>::
3737
--unified=<n>::

0 commit comments

Comments
 (0)