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>
Štěpán Němec committed
Nov 4, 2010 at 18:18 UTC
9edb8a0f7b3e2ca06b360abce2e2aaa2b5760a68
3 files changed
+3
-3
Documentation/git-diff.txt
+1
-1
@@ -8,7 +8,7 @@ git-diff - Show changes between commits, commit and working tree, etc
8
9
SYNOPSIS
10
--------
11
-'git diff' [<common diff options>] <commit>{0,2} [--] [<path>...]
11
+'git diff' [<common diff options>] [<commit> [<commit>]] [--] [<path>...]
12
13
DESCRIPTION
14
-----------
Documentation/git-difftool.txt
+1
-1
@@ -7,7 +7,7 @@ git-difftool - Show changes using common diff tools
7
8
SYNOPSIS
9
--------
10
-'git difftool' [<options>] <commit>{0,2} [--] [<path>...]
10
+'git difftool' [<options>] [<commit> [<commit>]] [--] [<path>...]
11
12
DESCRIPTION
13
-----------
builtin/diff.c
+1
-1
@@ -22,7 +22,7 @@ struct blobinfo {
22
};
23
24
static const char builtin_diff_usage[] =
25
-"git diff <options> <rev>{0,2} -- <path>*";
25
+"git diff [<options>] [<commit> [<commit>]] [--] [<path>...]";
26
27
static void stuff_change(struct diff_options *opt,
28
unsigned old_mode, unsigned new_mode,