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
index 13fad820d4758a041222a9285719245f6c8bac18,611f152daca6fd4ca7a9eab57a9294a26a7924ae..d6a4bc7d092f619d3c9dd20507c6659e13f82a3c
@@@ -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 \