From: c.shoemaker@cox.net
To: unlisted-recipients:; (no To-header on input)
Subject: [PATCH] Add usage statement for git-reset.sh
Date: Sat, 29 Oct 2005 00:16:20 -0400 [thread overview]
Message-ID: <E1EVi8i-0002Tk-UF@localhost> (raw)
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
reply other threads:[~2005-10-29 4:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1EVi8i-0002Tk-UF@localhost \
--to=c.shoemaker@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).