X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-applypatch.sh;h=e4b09472e1fa27a6431b431572af7353c4f0a9b2;hb=71b08148366bbc4d02b3477e7ded35b049206f89;hp=a112e1a50405c733e9e94c610caf36a7b07297dd;hpb=a9572072f0ab0ac97e64b0dc01254a3ad95befe1;p=git.git diff --git a/git-applypatch.sh b/git-applypatch.sh index a112e1a5..e4b09472 100755 --- 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 ## + +USAGE=' []' . git-sh-setup +case "$#" in 3|4) ;; *) usage ;; esac + 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 -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