summaryrefslogtreecommitdiffstats
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-09-01 07:11:36 +0200
committerJunio C Hamano <gitster@pobox.com>2009-09-01 07:11:36 +0200
commit554555ac7da0b9b78bd97cff05daa60498eb1bba (patch)
tree3eb0fceccbc644ff34cb66e84ec371b5047eabeb /cache.h
parentMerge branch 'mr/gitweb-snapshot' (diff)
parentfix approxidate parsing of relative months and years (diff)
downloadgit-554555ac7da0b9b78bd97cff05daa60498eb1bba.tar.xz
git-554555ac7da0b9b78bd97cff05daa60498eb1bba.zip
Merge branch 'lt/approxidate'
* lt/approxidate: fix approxidate parsing of relative months and years tests: add date printing and parsing tests refactor test-date interface Add date formatting and parsing functions relative to a given time Further 'approxidate' improvements Improve on 'approxidate' Conflicts: date.c
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 808dabacd6..5fad24ce21 100644
--- a/cache.h
+++ b/cache.h
@@ -731,9 +731,14 @@ enum date_mode {
};
const char *show_date(unsigned long time, int timezone, enum date_mode mode);
+const char *show_date_relative(unsigned long time, int tz,
+ const struct timeval *now,
+ char *timebuf,
+ size_t timebuf_size);
int parse_date(const char *date, char *buf, int bufsize);
void datestamp(char *buf, int bufsize);
unsigned long approxidate(const char *);
+unsigned long approxidate_relative(const char *date, const struct timeval *now);
enum date_mode parse_date_format(const char *format);
#define IDENT_WARN_ON_NO_NAME 1