X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-add.sh;h=f719b4b1a81a386c9cf62efad811005471be0f8c;hb=6a1f79c1f1a54f97f122a86c71837fb1f1408b67;hp=fdec86d1a41af847f9d737a2c058e2d2027f32fe;hpb=9cac9d368934f68e75810df95211a6522d4d139e;p=git.git diff --git a/git-add.sh b/git-add.sh index fdec86d1..f719b4b1 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] ..." -} +USAGE='[-n] [-v] ...' +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 \