提交 ab421d2c 编写于 作者: R Ryan Anderson 提交者: Junio C Hamano

[PATCH] Add git-request-pull-script, a short script that generates a summary of pending changes

A short message requesting a pull from the repository is also included.
Signed-off-by: NRyan Anderson <ryan@michonline.com>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 b55db7ba
......@@ -37,7 +37,8 @@ SCRIPTS=git git-apply-patch-script git-merge-one-file-script git-prune-script \
gitk git-cherry git-rebase-script git-relink-script git-repack-script \
git-format-patch-script git-sh-setup-script git-push-script \
git-branch-script git-parse-remote git-verify-tag-script \
git-ls-remote-script git-clone-dumb-http git-rename-script
git-ls-remote-script git-clone-dumb-http git-rename-script \
git-request-pull-script
PROG= git-update-cache git-diff-files git-init-db git-write-tree \
git-read-tree git-commit-tree git-cat-file git-fsck-cache \
......
#!/bin/sh -e
# Copyright 2005, Ryan Anderson <ryan@michonline.com>
#
# This file is licensed under the GPL v2, or a later version
# at the discretion of Linus Torvalds.
usage()
{
echo "$0 <commit> <filename> <url>"
echo " Summarizes the changes since <commit>, stores them in <filename>"
echo " and includes <url> in the message generated."
exit 1
}
revision=$1
filename=$2
url=$3
[ "$revision" ] || usage
[ "$filename" ] || usage
[ "$url" ] || usage
baserev=`git-rev-parse $revision`
(
echo "The git repository at:"
echo " $url"
echo "contains the following changes since commit $baserev"
echo ""
git log $revision.. | git-shortlog ;
git diff $revision.. | diffstat ;
) | tee $filename
echo "The above message is also stored in $filename"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册