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>
This commit is contained in:
Carl Worth
2006-02-21 15:33:49 -08:00
committed by Junio C Hamano
parent 39ba7d5464
commit 60ace8790f
3 changed files with 32 additions and 1 deletions

View File

@ -14,6 +14,10 @@ while : ; do
-v)
verbose=--verbose
;;
--)
shift
break
;;
-*)
usage
;;