summaryrefslogtreecommitdiff
path: root/git-add.sh
diff options
context:
space:
mode:
authorChris Shoemaker <c.shoemaker@cox.net>2005-10-29 21:46:41 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-31 01:28:01 (GMT)
commit918db541e0e833b695ee45ee6cf563d018096860 (patch)
tree7392afaa6a348bef15f5b04544765b79b9685397 /git-add.sh
parent14470c0de3d5a4388960f59ea96038206bacd888 (diff)
downloadgit-918db541e0e833b695ee45ee6cf563d018096860.zip
git-918db541e0e833b695ee45ee6cf563d018096860.tar.gz
git-918db541e0e833b695ee45ee6cf563d018096860.tar.bz2
Add to usage and docs for git-add.sh
Signed-off-by: Chris Shoemaker <c.shoemaker@cox.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-add.sh')
-rwxr-xr-xgit-add.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-add.sh b/git-add.sh
index 4bf4128..b5fe46a 100755
--- a/git-add.sh
+++ b/git-add.sh
@@ -1,5 +1,9 @@
#!/bin/sh
+usage() {
+ die "usage: git add [-n] [-v] <file>..."
+}
+
show_only=
verbose=
while : ; do
@@ -10,6 +14,9 @@ while : ; do
-v)
verbose=--verbose
;;
+ -*)
+ usage
+ ;;
*)
break
;;