summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b55db7b)
raw | patch | inline | side by side (parent: b55db7b)
author | Ryan Anderson <ryan@michonline.com> | |
Tue, 26 Jul 2005 07:30:36 +0000 (03:30 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 27 Jul 2005 18:53:47 +0000 (11:53 -0700) |
A short message requesting a pull from the repository is also included.
Signed-off-by: Ryan Anderson <ryan@michonline.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Ryan Anderson <ryan@michonline.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile | patch | blob | history | |
git-request-pull-script | [new file with mode: 0755] | patch | blob |
diff --git a/Makefile b/Makefile
index d4518df207bf0ade86df0644b903a82a8f74ff6a..f50ad72399ea41aa34c88611166992df445e5d7c 100644 (file)
--- a/Makefile
+++ b/Makefile
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 \
diff --git a/git-request-pull-script b/git-request-pull-script
--- /dev/null
+++ b/git-request-pull-script
@@ -0,0 +1,36 @@
+#!/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"
+