summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-09-01 05:11:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-09-01 05:11:36 (GMT)
commit554555ac7da0b9b78bd97cff05daa60498eb1bba (patch)
tree3eb0fceccbc644ff34cb66e84ec371b5047eabeb /cache.h
parent909beb860b98d51eeb26ff1f97bfad40ef7d5970 (diff)
parent931e8e27d94dbc24abc9c969ae0b414e0361abff (diff)
downloadgit-554555ac7da0b9b78bd97cff05daa60498eb1bba.zip
git-554555ac7da0b9b78bd97cff05daa60498eb1bba.tar.gz
git-554555ac7da0b9b78bd97cff05daa60498eb1bba.tar.bz2
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 808daba..5fad24c 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