Merge branch 'fix'
authorJunio C Hamano <junkio@cox.net>
Wed, 22 Feb 2006 08:35:07 +0000 (00:35 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 22 Feb 2006 08:35:07 +0000 (00:35 -0800)
* fix:
  git-push: Update documentation to describe the no-refspec behavior.
  format-patch: pretty-print timestamp correctly.
  git-add: Add support for --, documentation, and test.

1  2 
git-add.sh

diff --combined git-add.sh
@@@ -14,6 -14,10 +14,10 @@@ while : ; d
      -v)
        verbose=--verbose
        ;;
+     --)
+       shift
+       break
+       ;;
      -*)
        usage
        ;;
    shift
  done
  
 +# Check misspelled pathspec
 +case "$#" in
 +0)    ;;
 +*)
 +      git-ls-files --error-unmatch --others --cached -- "$@" >/dev/null || {
 +              echo >&2 "Maybe you misspelled it?"
 +              exit 1
 +      }
 +      ;;
 +esac
 +
  if test -f "$GIT_DIR/info/exclude"
  then
        git-ls-files -z \