threads / patch / 23268

patchUpdated the usage string of git reset

Subject: [PATCH] Updated the usage string of git reset

## tl;dr

One message between Mar 31, 2010 and Mar 31, 2010. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Jan Stępień· Mar 31, 2010, 09:24 UTC · lore

Make git reset usage string reflect the command's behaviour and contents of the man page.

Signed-off-by: Jan Stępień <jstepien@users.sourceforge.net>
---
 builtin/reset.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Show changes to builtin/reset.c +2 −1
diff --git a/builtin/reset.c b/builtin/reset.c
index 2c3a69a..1283068 100644
--- a/builtin/reset.c
+++ b/builtin/reset.c
@@ -23,7 +23,8 @@
 
 static const char * const git_reset_usage[] = {
 	"git reset [--mixed | --soft | --hard | --merge | --keep] [-q] [<commit>]",
-	"git reset [--mixed] <commit> [--] <paths>...",
+	"git reset [-q] <commit> [--] <paths>...",
+	"git reset --patch [<commit>] [--] [<paths>...]",
 	NULL
 };
 
-- 
1.7.0.3

← back to recent threads