-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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: Ryan Anderson <ryan@michonline.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
- Loading branch information
Ryan Anderson
authored and
Junio C Hamano
committed
Jul 27, 2005
1 parent
b55db7b
commit ab421d2
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
|