mirror of
https://github.com/git/git.git
synced 2024-11-18 16:53:53 +01:00
ab421d2c78
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>
37 lines
764 B
Bash
Executable File
37 lines
764 B
Bash
Executable File
#!/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"
|
|
|