Skip to content

Commit b810537

Browse files
BenabikJunio C Hamano
authored andcommitted
Fix diff-options references in git-diff and git-format-patch
Most of the git-diff-* documentation used [<common diff options>] instead of [--diff-options], so make that change in git-diff and git-format-patch. In addition, git-format-patch didn't include the meanings of the diff options. Signed-off-by: Brian Gernhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 043d760 commit b810537

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Documentation/git-diff.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git-diff - Show changes between commits, commit and working tree, etc
88

99
SYNOPSIS
1010
--------
11-
'git-diff' [ --diff-options ] <commit>{0,2} [--] [<path>...]
11+
'git-diff' [<common diff options>] <commit>{0,2} [--] [<path>...]
1212

1313
DESCRIPTION
1414
-----------

Documentation/git-format-patch.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ git-format-patch - Prepare patches for e-mail submission
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git-format-patch' [-n | -k] [-o <dir> | --stdout] [--attach] [--thread]
13-
[-s | --signoff] [--diff-options] [--start-number <n>]
12+
'git-format-patch' [<common diff options>] [-n | -k] [-o <dir> | --stdout]
13+
[--attach] [--thread] [-s | --signoff] [--start-number <n>]
1414
[--in-reply-to=Message-Id] [--suffix=.<sfx>]
1515
[--ignore-if-in-upstream]
1616
<since>[..<until>]
@@ -46,6 +46,8 @@ reference.
4646

4747
OPTIONS
4848
-------
49+
include::diff-options.txt[]
50+
4951
-o|--output-directory <dir>::
5052
Use <dir> to store the resulting files, instead of the
5153
current working directory.

0 commit comments

Comments
 (0)