summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2016-10-11 16:09:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-10-11 19:27:39 (GMT)
commit641c900b2c3a8c3d385eb353b3801a5f49ddbb47 (patch)
tree330cf570d6de9a434363d99802ef3d3caf3d0519
parent0b65a8dbdb38962e700ee16776a3042beb489060 (diff)
downloadgit-641c900b2c3a8c3d385eb353b3801a5f49ddbb47.zip
git-641c900b2c3a8c3d385eb353b3801a5f49ddbb47.tar.gz
git-641c900b2c3a8c3d385eb353b3801a5f49ddbb47.tar.bz2
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>
-rw-r--r--builtin/reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/reset.c b/builtin/reset.c
index 092c3a5..fdf4728 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
};