From: Johannes Schindelin Date: Thu, 22 Dec 2005 19:38:23 +0000 (+0100) Subject: git-format-patch should show the correct version X-Git-Tag: v1.0.3^2~2 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=e99fcf96deab45ca81b22948328deb2d8586aa8d;p=git.git git-format-patch should show the correct version We want to record the version of the tools the patch was generated with. While these tools could be rebuilt, git-format-patch stayed the same and report the wrong version. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index e9bf860f..dde8f331 100644 --- a/Makefile +++ b/Makefile @@ -397,6 +397,9 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)) : % : %.py git-cherry-pick: git-revert cp $< $@ +# format-patch records GIT_VERSION +git-format-patch: Makefile + %.o: %.c $(CC) -o $*.o -c $(ALL_CFLAGS) $< %.o: %.S