summaryrefslogtreecommitdiff
path: root/git-add.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-add.sh')
-rwxr-xr-xgit-add.sh13
1 files changed, 3 insertions, 10 deletions
diff --git a/git-add.sh b/git-add.sh
index fdec86d1a4..f719b4b1a8 100755
--- a/git-add.sh
+++ b/git-add.sh
@@ -1,13 +1,8 @@
#!/bin/sh
-die () {
- echo >&2 "$*"
- exit 1
-}
-
-usage() {
- die "usage: git add [-n] [-v] <file>..."
-}
+USAGE='[-n] [-v] <file>...'
+SUBDIRECTORY_OK='Yes'
+. git-sh-setup
show_only=
verbose=
@@ -29,8 +24,6 @@ while : ; do
shift
done
-GIT_DIR=$(git-rev-parse --git-dir) || exit
-
if test -f "$GIT_DIR/info/exclude"
then
git-ls-files -z \