aboutsummaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-01 01:44:33 -0700
committerJunio C Hamano <junkio@cox.net>2006-05-01 01:44:33 -0700
commit2a3870432395e78c82a870bf1a177b8d5b8fbdf0 (patch)
treece8565e72853b593cf42ba3a9b0eacdf532b01ca /commit.c
parent53f420ef00ca6cc3554084c4c9fb89f50c634f58 (diff)
downloadgit-2a3870432395e78c82a870bf1a177b8d5b8fbdf0.tar.gz
git-2a3870432395e78c82a870bf1a177b8d5b8fbdf0.tar.xz
Use RFC2822 dates from "git fmt-patch".
Still Work-in-progress git fmt-patch (should it be known as format-patch-ng?) is matched with the fix made by Huw Davies in 262a6ef76a1dde97ab50d79fa5cd6d3f9f125765 commit to use RFC2822 date format. Signed-off-by: Junio C Hamano <junkio@cox.net>
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 f4e4eea01..42b44bba5 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));