Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'fix'
author
Junio C Hamano
<junkio@cox.net>
Wed, 22 Feb 2006 08:35:07 +0000
(
00:35
-0800)
committer
Junio 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
patch
|
diff1
|
diff2
|
blob
|
history
raw
|
compact
(merge:
6b98579
aa06474
)
diff --combined
git-add.sh
index 13fad820d4758a041222a9285719245f6c8bac18,611f152daca6fd4ca7a9eab57a9294a26a7924ae..d6a4bc7d092f619d3c9dd20507c6659e13f82a3c
---
1
/
git-add.sh
---
2
/
git-add.sh
+++ b/
git-add.sh
@@@
-14,6
-14,10
+14,10
@@@
while : ; d
-v)
verbose=--verbose
;;
+ --)
+ shift
+ break
+ ;;
-*)
usage
;;
@@@
-24,17
-28,6
+28,17
@@@
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 \