summaryrefslogtreecommitdiff
path: root/git-add.sh
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-02-21 23:33:49 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-22 01:33:43 (GMT)
commit60ace8790f3cfba4fdc16e71e23c4f9c44ce9b44 (patch)
tree2a482e0dd128e37b5639d6b0a9ce63f0eec7ed8d /git-add.sh
parent39ba7d54649b35c943b026b54bff40cfa0153f3e (diff)
downloadgit-60ace8790f3cfba4fdc16e71e23c4f9c44ce9b44.zip
git-60ace8790f3cfba4fdc16e71e23c4f9c44ce9b44.tar.gz
git-60ace8790f3cfba4fdc16e71e23c4f9c44ce9b44.tar.bz2
git-add: Add support for --, documentation, and test.
This adds support to git-add to allow the common -- to separate command-line options and file names. It adds documentation and a new git-add test case as well. [jc: this should apply to 1.2.X maintenance series, so I reworked git-ls-files --error-unmatch test. ] Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-add.sh')
-rwxr-xr-xgit-add.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-add.sh b/git-add.sh
index f719b4b..611f152 100755
--- a/git-add.sh
+++ b/git-add.sh
@@ -14,6 +14,10 @@ while : ; do
-v)
verbose=--verbose
;;
+ --)
+ shift
+ break
+ ;;
-*)
usage
;;