#!/bin/sh
+usage() {
+ die "usage: git add [-n] [-v] <file>..."
+}
+
show_only=
verbose=
while : ; do
-v)
verbose=--verbose
;;
+ -*)
+ usage
+ ;;
*)
break
;;
then
git-ls-files -z \
--exclude-from="$GIT_DIR/info/exclude" \
- --others --exclude-per-directory=.gitignore "$@"
+ --others --exclude-per-directory=.gitignore -- "$@"
else
git-ls-files -z \
- --others --exclude-per-directory=.gitignore "$@"
+ --others --exclude-per-directory=.gitignore -- "$@"
fi |
case "$show_only" in
true)