summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 90a321c)
raw | patch | inline | side by side (parent: 90a321c)
author | Junio C Hamano <gitster@pobox.com> | |
Wed, 9 Nov 2011 13:05:00 +0000 (05:05 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 9 Nov 2011 13:31:09 +0000 (05:31 -0800) |
The integrator tool will start allowing to pull a signed or an annotated
tag, i.e.
$ git pull $there tags/for-linus
and the description in the tag is used to convey a meaningful message from
the lieutenant to the integrator to justify the history being pulled.
Include the message in the pull request e-mail, as the same information is
useful in this context, too. It would encourage the lieutenants to write
meaningful messages in their signed tags.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tag, i.e.
$ git pull $there tags/for-linus
and the description in the tag is used to convey a meaningful message from
the lieutenant to the integrator to justify the history being pulled.
Include the message in the pull request e-mail, as the same information is
useful in this context, too. It would encourage the lieutenants to write
meaningful messages in their signed tags.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-request-pull.sh | patch | blob | history | |
t/t5150-request-pull.sh | patch | blob | history |
diff --git a/git-request-pull.sh b/git-request-pull.sh
index 626cf2591ad4b01ca6c917e10b8be472929c0922..c6a5b7a6b38adaafdebb4b0991cc5ee8c14c3796 100755 (executable)
--- a/git-request-pull.sh
+++ b/git-request-pull.sh
fi
fi
+tag_name=$(git describe --exact "$head^0" 2>/dev/null)
+
test -n "$base" && test -n "$url" || usage
baserev=$(git rev-parse --verify "$base"^0) &&
headrev=$(git rev-parse --verify "$head"^0) || exit
echo "(from the branch description for $branch local branch)"
echo
git config "branch.$branch_name.description"
+fi &&
+
+if test -n "$tag_name"
+then
+ git cat-file tag "$tag_name" |
+ sed -n -e '1,/^$/d' -e '/^-----BEGIN PGP /q' -e p
+ echo
+fi &&
+
+if test -n "$branch_name" || test -n "$tag_name"
+then
echo "----------------------------------------------------------------"
fi &&
+
git shortlog ^$baserev $headrev &&
git diff -M --stat --summary $patch $merge_base..$headrev || status=1
index 5bd16829443bbafd9cd7450353b45f7871290a24..ea6f692bafa9f2c4f81985a50ed79a1c5016b493 100755 (executable)
--- a/t/t5150-request-pull.sh
+++ b/t/t5150-request-pull.sh
s/$downstream_url_for_sed/URL/g
s/for-upstream/BRANCH/g
s/mnemonic.txt/FILENAME/g
+ s/^version [0-9]/VERSION/
/^ FILENAME | *[0-9]* [-+]*\$/ b diffstat
/^AUTHOR ([0-9]*):\$/ b shortlog
p
SUBJECT (DATE)
+ ----------------------------------------------------------------
+ VERSION
+
----------------------------------------------------------------
SHORTLOG