diff options
author | Carl Worth <cworth@cworth.org> | 2006-02-21 15:33:49 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-02-21 17:33:43 -0800 |
commit | 60ace8790f3cfba4fdc16e71e23c4f9c44ce9b44 (patch) | |
tree | 2a482e0dd128e37b5639d6b0a9ce63f0eec7ed8d /git-add.sh | |
parent | Fix retries in git-cvsimport (diff) | |
download | tgif-60ace8790f3cfba4fdc16e71e23c4f9c44ce9b44.tar.xz |
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-x | git-add.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git-add.sh b/git-add.sh index f719b4b1a8..611f152dac 100755 --- a/git-add.sh +++ b/git-add.sh @@ -14,6 +14,10 @@ while : ; do -v) verbose=--verbose ;; + --) + shift + break + ;; -*) usage ;; |