Skip to content

Commit 74f3390

Browse files
ffyuandagitster
authored andcommitted
builtin/diff.c: fix "git-diff" usage string typo
Remove mistaken right square brackets from "git-diff" usage string. Make the usage string conform to "git-diff" documentation (Documentation/git-diff.txt). Signed-off-by: Shaoxuan Yuan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4c53a8c commit 74f3390

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builtin/diff.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ static const char builtin_diff_usage[] =
2828
"git diff [<options>] [<commit>] [--] [<path>...]\n"
2929
" or: git diff [<options>] --cached [--merge-base] [<commit>] [--] [<path>...]\n"
3030
" or: git diff [<options>] [--merge-base] <commit> [<commit>...] <commit> [--] [<path>...]\n"
31-
" or: git diff [<options>] <commit>...<commit>] [--] [<path>...]\n"
32-
" or: git diff [<options>] <blob> <blob>]\n"
33-
" or: git diff [<options>] --no-index [--] <path> <path>]\n"
31+
" or: git diff [<options>] <commit>...<commit> [--] [<path>...]\n"
32+
" or: git diff [<options>] <blob> <blob>\n"
33+
" or: git diff [<options>] --no-index [--] <path> <path>\n"
3434
COMMON_DIFF_OPTIONS_HELP;
3535

3636
static const char *blob_path(struct object_array_entry *entry)

0 commit comments

Comments
 (0)