From: Jeff King Date: Fri, 2 May 2014 01:10:01 +0000 (-0400) Subject: commit: print "Date" line when the user has set date X-Git-Tag: v2.1.0-rc0~183^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b7242b8c9e4b3c57a07c2a76d0337389605aadcc?ds=inline;hp=b7242b8c9e4b3c57a07c2a76d0337389605aadcc commit: print "Date" line when the user has set date When we make a commit and the author is not the same as the committer (e.g., because you used "-c $commit" or "--author=$somebody"), we print the author's name and email in both the commit-message template and as part of the commit summary. This is a safety check to give the user a chance to confirm that we are doing what they expect. This patch brings the same safety for the "date" field, which may be set by "-c" or by using "--date". Note that we explicitly do not set it for $GIT_AUTHOR_DATE, as it is probably not of interest when "git commit" is being fed its parameters by a script. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---