Skip to content

Commit e99fcf9

Browse files
dschoJunio C Hamano
authored andcommitted
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 <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 69310a3 commit e99fcf9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)) : % : %.py
397397
git-cherry-pick: git-revert
398398
cp $< $@
399399

400+
# format-patch records GIT_VERSION
401+
git-format-patch: Makefile
402+
400403
%.o: %.c
401404
$(CC) -o $*.o -c $(ALL_CFLAGS) $<
402405
%.o: %.S

0 commit comments

Comments
 (0)