X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-add.sh;h=f719b4b1a81a386c9cf62efad811005471be0f8c;hb=e99fcf96deab45ca81b22948328deb2d8586aa8d;hp=fdec86d1a41af847f9d737a2c058e2d2027f32fe;hpb=d165fa14f0a111dfc85d964ecc037d0b280cd54f;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 \