Skip to contentSkip to conversation

Updated the usage string of git reset

PATCH New Jan Stępień 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Updated the usage string of git reset

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

---
 builtin/reset.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
builtin/reset.c +2 -1
index 2c3a69a..1283068 100644
@@ -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
 };
 
Signature · 1 line
1.7.0.3