projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-svn: bugfix and optimize the 'log' command
[git.git]
/
git-applypatch.sh
diff --git
a/git-applypatch.sh
b/git-applypatch.sh
index
a112e1a
..
e4b0947
100755
(executable)
--- a/
git-applypatch.sh
+++ b/
git-applypatch.sh
@@
-10,8
+10,12
@@
## $3 - "info" file with Author, email and subject
## $4 - optional file containing signoff to add
##
## $3 - "info" file with Author, email and subject
## $4 - optional file containing signoff to add
##
+
+USAGE='<msg> <patch> <info> [<signoff>]'
. git-sh-setup
. git-sh-setup
+case "$#" in 3|4) ;; *) usage ;; esac
+
final=.dotest/final-commit
##
## If this file exists, we ask before applying
final=.dotest/final-commit
##
## If this file exists, we ask before applying
@@
-200,7
+204,7
@@
echo Wrote tree $tree
parent=$(git-rev-parse --verify HEAD) &&
commit=$(git-commit-tree $tree -p $parent <"$final") || exit 1
echo Committed: $commit
parent=$(git-rev-parse --verify HEAD) &&
commit=$(git-commit-tree $tree -p $parent <"$final") || exit 1
echo Committed: $commit
-git-update-ref HEAD $commit $parent || exit
+git-update-ref
-m "applypatch: $SUBJECT"
HEAD $commit $parent || exit
if test -x "$GIT_DIR"/hooks/post-applypatch
then
if test -x "$GIT_DIR"/hooks/post-applypatch
then