aboutsummaryrefslogtreecommitdiff
path: root/builtin/reset.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2016-10-11 18:09:03 +0200
committerJunio C Hamano <gitster@pobox.com>2016-10-11 12:27:39 -0700
commit641c900b2c3a8c3d385eb353b3801a5f49ddbb47 (patch)
tree330cf570d6de9a434363d99802ef3d3caf3d0519 /builtin/reset.c
parent0b65a8dbdb38962e700ee16776a3042beb489060 (diff)
downloadgit-641c900b2c3a8c3d385eb353b3801a5f49ddbb47.tar.gz
git-641c900b2c3a8c3d385eb353b3801a5f49ddbb47.tar.xz
reset: fix usage
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>
Diffstat (limited to 'builtin/reset.c')
-rw-r--r--builtin/reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/reset.c b/builtin/reset.c
index 092c3a539..fdf47285c 100644
--- a/builtin/reset.c
+++ b/builtin/reset.c
@@ -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
};