aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-07-13 23:14:52 -0700
committerJunio C Hamano <gitster@pobox.com>2007-07-13 23:14:52 -0700
commit73013afd14c14ba178ab2aaa458168ec1d5506de (patch)
tree2e8238e3b6ab297cccd7de60f84acc9289d6cec4 /cache.h
parentee8f838e0346751b21250f8d107049829b855a98 (diff)
downloadgit-73013afd14c14ba178ab2aaa458168ec1d5506de.tar.gz
git-73013afd14c14ba178ab2aaa458168ec1d5506de.tar.xz
Make show_rfc2822_date() just another date output format.
These days, show_date() takes a date_mode parameter to specify the output format, and a separate specialized function for dates in E-mails does not make much sense anymore. This retires show_rfc2822_date() function and make it just another date output format. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/cache.h b/cache.h
index b39557dd0..328c1ad41 100644
--- a/cache.h
+++ b/cache.h
@@ -409,9 +409,16 @@ extern void *read_object_with_reference(const unsigned char *sha1,
unsigned long *size,
unsigned char *sha1_ret);
-enum date_mode { DATE_NORMAL = 0, DATE_RELATIVE, DATE_SHORT, DATE_LOCAL, DATE_ISO8601 };
+enum date_mode {
+ DATE_NORMAL = 0,
+ DATE_RELATIVE,
+ DATE_SHORT,
+ DATE_LOCAL,
+ DATE_ISO8601,
+ DATE_RFC2822
+};
+
const char *show_date(unsigned long time, int timezone, enum date_mode mode);
-const char *show_rfc2822_date(unsigned long time, int timezone);
int parse_date(const char *date, char *buf, int bufsize);
void datestamp(char *buf, int bufsize);
unsigned long approxidate(const char *);