summaryrefslogtreecommitdiff
path: root/git-format-patch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-04 19:41:35 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-05 00:04:45 (GMT)
commit3ff8cbeda635422f4740d325d56288dfdea10179 (patch)
tree9eec9ff9326032bca405a12a265918725edf4ac7 /git-format-patch.sh
parenta567d3154ec05dd991abf50389eacc36bfc25965 (diff)
downloadgit-3ff8cbeda635422f4740d325d56288dfdea10179.zip
git-3ff8cbeda635422f4740d325d56288dfdea10179.tar.gz
git-3ff8cbeda635422f4740d325d56288dfdea10179.tar.bz2
Record which tree the patch applies to.
Also note which version of GIT produced the patch. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-format-patch.sh')
-rwxr-xr-xgit-format-patch.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-format-patch.sh b/git-format-patch.sh
index 2844799..9378219 100755
--- a/git-format-patch.sh
+++ b/git-format-patch.sh
@@ -212,7 +212,10 @@ Date: '"$ad"
echo
git-diff-tree -p $diff_opts "$commit" | git-apply --stat --summary
echo
+ git-cat-file commit "$commit^" | sed -e 's/^tree /applies-to: /' -e q
git-diff-tree -p $diff_opts "$commit"
+ echo "---"
+ echo "@@GIT_VERSION@@"
case "$mbox" in
t)