diff options
author | Jeff King <peff@peff.net> | 2014-05-01 21:07:22 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-05-02 14:13:00 -0700 |
commit | d1053246554d176173893a5283dc0c0fb563ed03 (patch) | |
tree | 480220c23e2c9f405e2cc7983375b48ac76e7681 /pretty.c | |
parent | 4701026352ada1ebc36532272ca1e12897b1de11 (diff) | |
download | git-d1053246554d176173893a5283dc0c0fb563ed03.tar.gz |
pretty: make show_ident_date public
We use this function internally to format "Date" lines in
commit logs, but other parts of the code will want it, too.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pretty.c')
-rw-r--r-- | pretty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -393,8 +393,8 @@ static void add_rfc2047(struct strbuf *sb, const char *line, size_t len, strbuf_addstr(sb, "?="); } -static const char *show_ident_date(const struct ident_split *ident, - enum date_mode mode) +const char *show_ident_date(const struct ident_split *ident, + enum date_mode mode) { unsigned long date = 0; long tz = 0; |