Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-ls-tree: add "-t" option to always show the tree entries
[gitweb.git]
/
git-add.sh
diff --git
a/git-add.sh
b/git-add.sh
index 4bf41281d5554f9b1da103b0360eebc411a435eb..fdec86d1a41af847f9d737a2c058e2d2027f32fe 100755
(executable)
--- a/
git-add.sh
+++ b/
git-add.sh
@@
-1,5
+1,14
@@
#!/bin/sh
+die () {
+ echo >&2 "$*"
+ exit 1
+}
+
+usage() {
+ die "usage: git add [-n] [-v] <file>..."
+}
+
show_only=
verbose=
while : ; do
@@
-10,6
+19,9
@@
while : ; do
-v)
verbose=--verbose
;;
+ -*)
+ usage
+ ;;
*)
break
;;