aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-08-12 18:31:03 -0700
committerJunio C Hamano <gitster@pobox.com>2010-08-12 18:31:03 -0700
commitaa8b8f40df07972fad357420415ff9bbdf22dd9e (patch)
tree6c7200dbc490fcd5f5511e3c13d6bd0f58e9bbba /cache.h
parent1c80c9b2cb5ae0d8c77f3c73730225ca19aeef4a (diff)
parent9644c0616374f8c621b10793b1732b26a0482820 (diff)
downloadgit-aa8b8f40df07972fad357420415ff9bbdf22dd9e.tar.gz
git-aa8b8f40df07972fad357420415ff9bbdf22dd9e.tar.xz
Merge branch 'jn/parse-date-basic'
* jn/parse-date-basic: Export parse_date_basic() to convert a date string to timestamp
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 1e690d124..37ef9d8a0 100644
--- a/cache.h
+++ b/cache.h
@@ -811,6 +811,7 @@ const char *show_date_relative(unsigned long time, int tz,
char *timebuf,
size_t timebuf_size);
int parse_date(const char *date, char *buf, int bufsize);
+int parse_date_basic(const char *date, unsigned long *timestamp, int *offset);
void datestamp(char *buf, int bufsize);
#define approxidate(s) approxidate_careful((s), NULL)
unsigned long approxidate_careful(const char *, int *);