Git development
 help / color / mirror / Atom feed
From: Ryan Anderson <ryan@michonline.com>
To: git@vger.kernel.org, Linus Torvalds <torvalds@osdl.org>
Subject: [PATCH] Add git-request-pull-script, a short script that generates a summary of pending changes
Date: Tue, 26 Jul 2005 03:30:36 -0400	[thread overview]
Message-ID: <20050726073036.GJ6098@mythryan2.michonline.com> (raw)


A short message requesting a pull from the repository is also included.

Signed-off-by: Ryan Anderson <ryan@michonline.com>
---

 Makefile                |    3 ++-
 git-request-pull-script |   36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+), 1 deletions(-)
 create mode 100755 git-request-pull-script

834527420cf55d1a11a77372704229e2701108a4
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,8 @@ SCRIPTS=git git-apply-patch-script git-m
 	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
new file mode 100755
--- /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"
+
-- 

Ryan Anderson
  sometimes Pug Majere

             reply	other threads:[~2005-07-26  7:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-26  7:30 Ryan Anderson [this message]
2005-07-26  7:36 ` [PATCH] Add git-request-pull-script, a short script that generates a summary of pending changes Ryan Anderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050726073036.GJ6098@mythryan2.michonline.com \
    --to=ryan@michonline.com \
    --cc=git@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox