git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Updated the usage string of git reset

From
Jan Stępień <jstepien@users.sourceforge.net>
Date
Mar 31, 2010, 09:24 UTC
Message-ID
<1270027459-1967-1-git-send-email-jstepien@users.sourceforge.net>

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(-)
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
Message 1 of 1 in “Updated the usage string of git reset”
  1. Updated the usage string of git resetJan Stępień, Mar 31, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.