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

[PATCH] Add usage statement for git-reset.sh

From
Cc.shoemaker@cox.net <c.shoemaker@cox.net>
Date
Oct 29, 2005, 04:16 UTC
Message-ID
<E1EVi8i-0002Tk-UF@localhost>
Signed-off-by: Chris Shoemaker <c.shoemaker at cox.net>
---
 git-reset.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
6bce396534f26c05d43bfb42d057465c4e564030
diff --git a/git-reset.sh b/git-reset.sh
--- a/git-reset.sh
+++ b/git-reset.sh
@@ -1,6 +1,10 @@
 #!/bin/sh
 . git-sh-setup || die "Not a git archive"
 
+usage () {
+	die 'Usage: git reset [--mixed] [--soft] [--hard]  [<commit-ish>]'
+}
+
 tmp=/var/tmp/reset.$$
 trap 'rm -f $tmp-*' 0 1 2 3 15
 
@@ -10,6 +14,8 @@ case "$1" in
 	reset_type="$1"
 	shift
 	;;
+-*)
+        usage ;;
 esac
 
 rev=$(git-rev-parse --verify --default HEAD "$@") || exit
Message 1 of 1 in “Add usage statement for git-reset.sh”
  1. Add usage statement for git-reset.shc.shoemaker@cox.net, Oct 29, 2005

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.