OSDN Git Service

reset: fix usage
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 11 Oct 2016 16:09:03 +0000 (18:09 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Oct 2016 19:27:39 +0000 (12:27 -0700)
The <tree-ish> parameter is actually optional (see man page).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reset.c

index 092c3a5..fdf4728 100644 (file)
@@ -24,7 +24,7 @@
 
 static const char * const git_reset_usage[] = {
        N_("git reset [--mixed | --soft | --hard | --merge | --keep] [-q] [<commit>]"),
-       N_("git reset [-q] <tree-ish> [--] <paths>..."),
+       N_("git reset [-q] [<tree-ish>] [--] <paths>..."),
        N_("git reset --patch [<tree-ish>] [--] [<paths>...]"),
        NULL
 };