X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-add.sh;h=f719b4b1a81a386c9cf62efad811005471be0f8c;hb=ee34518d629331dadd58b1a75294369d679eda8b;hp=b5fe46aa20865d6785390fd22406d32b00a77845;hpb=56fc63193975edd4b9f520b6c65c2b97ecd8ee38;p=git.git diff --git a/git-add.sh b/git-add.sh index b5fe46aa..f719b4b1 100755 --- a/git-add.sh +++ b/git-add.sh @@ -1,8 +1,8 @@ #!/bin/sh -usage() { - die "usage: git add [-n] [-v] ..." -} +USAGE='[-n] [-v] ...' +SUBDIRECTORY_OK='Yes' +. git-sh-setup show_only= verbose= @@ -24,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 \