summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-05-01 01:55:02 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-01 01:55:02 -0700
commit9318ec234b75eed6dce10e328c93705fec89b31d (patch)
tree19faadfed545cf06078ba1c06c9ad1b4ce2f8e54 /commit.c
parentMerge branch 'jc/xsha1' into next (diff)
parentUse RFC2822 dates from "git fmt-patch". (diff)
downloadtgif-9318ec234b75eed6dce10e328c93705fec89b31d.tar.xz
Merge branch 'jc/fmt-patch' into next
* jc/fmt-patch: Use RFC2822 dates from "git fmt-patch".
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/commit.c b/commit.c
index f4e4eea014..42b44bba52 100644
--- a/commit.c
+++ b/commit.c
@@ -442,7 +442,8 @@ static int add_user_info(const char *what, enum cmit_fmt fmt, char *buf, const c
ret += sprintf(buf + ret, "Date: %s\n", show_date(time, tz));
break;
case CMIT_FMT_EMAIL:
- ret += sprintf(buf + ret, "Date: %s\n", show_date(time, tz));
+ ret += sprintf(buf + ret, "Date: %s\n",
+ show_rfc2822_date(time, tz));
break;
case CMIT_FMT_FULLER:
ret += sprintf(buf + ret, "%sDate: %s\n", what, show_date(time, tz));