Skip to content

Commit 9edb8a0

Browse files
stepnemgitster
authored andcommitted
diff,difftool: Don't use the {0,2} notation in usage strings
This was the only occurence of that usage, and square brackets are sufficient and already well-established for that purpose. Signed-off-by: Štěpán Němec <stepnem@gmail.com> Acked-by: Sverre Rabbelier <srabbelier@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent c455bd8 commit 9edb8a0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-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' [<common diff options>] <commit>{0,2} [--] [<path>...]
11+
'git diff' [<common diff options>] [<commit> [<commit>]] [--] [<path>...]
1212

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

Documentation/git-difftool.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ git-difftool - Show changes using common diff tools
77

88
SYNOPSIS
99
--------
10-
'git difftool' [<options>] <commit>{0,2} [--] [<path>...]
10+
'git difftool' [<options>] [<commit> [<commit>]] [--] [<path>...]
1111

1212
DESCRIPTION
1313
-----------

builtin/diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct blobinfo {
2222
};
2323

2424
static const char builtin_diff_usage[] =
25-
"git diff <options> <rev>{0,2} -- <path>*";
25+
"git diff [<options>] [<commit> [<commit>]] [--] [<path>...]";
2626

2727
static void stuff_change(struct diff_options *opt,
2828
unsigned old_mode, unsigned new_mode,

0 commit comments

Comments
 (0)