Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-04 23:41:35 +0400
committerJunio C Hamano <junkio@cox.net>2005-10-05 04:04:45 +0400
commit3ff8cbeda635422f4740d325d56288dfdea10179 (patch)
tree9eec9ff9326032bca405a12a265918725edf4ac7 /git-format-patch.sh
parenta567d3154ec05dd991abf50389eacc36bfc25965 (diff)
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 2844799535..9378219d84 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)