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>
Junio C Hamano committed
Oct 4, 2005 at 12:41 UTC
3ff8cbeda635422f4740d325d56288dfdea10179
2 files changed
+11
-3
Makefile
+8
-3
@@ -306,19 +306,24 @@ git: git.sh Makefile
306
307
$(filter-out git,$(patsubst %.sh,%,$(SCRIPT_SH))) : % : %.sh
308
rm -f $@
309
- sed -e '1s|#!.*/sh|#!$(SHELL_PATH)|' $@.sh >$@
309
+ sed -e '1s|#!.*/sh|#!$(SHELL_PATH)|' \
310
+ -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
311
+ $@.sh >$@
312
chmod +x $@
313
314
$(patsubst %.perl,%,$(SCRIPT_PERL)) : % : %.perl
315
rm -f $@
314
- sed -e '1s|#!.*perl|#!$(PERL_PATH)|' $@.perl >$@
316
+ sed -e '1s|#!.*perl|#!$(PERL_PATH)|' \
317
+ -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
318
+ $@.perl >$@
319
chmod +x $@
320
321
$(patsubst %.py,%,$(SCRIPT_PYTHON)) : % : %.py
322
rm -f $@
323
sed -e '1s|#!.*python|#!$(PYTHON_PATH)|' \
324
-e 's|@@GIT_PYTHON_PATH@@|$(GIT_PYTHON_DIR)|g' \
321
- $@.py >$@
325
+ -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
326
+ $@.py >$@
327
chmod +x $@
328
329
%.o: %.c
git-format-patch.sh
+3
@@ -212,7 +212,10 @@ Date: '"$ad"
212
echo
213
git-diff-tree -p $diff_opts "$commit" | git-apply --stat --summary
214
echo
215
+ git-cat-file commit "$commit^" | sed -e 's/^tree /applies-to: /' -e q
216
git-diff-tree -p $diff_opts "$commit"
217
+ echo "---"
218
+ echo "@@GIT_VERSION@@"
219
220
case "$mbox" in
221
t)