summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-02-10 13:02:43 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-02-10 13:02:43 -0800
commit410e99fadf25b65b70d9bf90fd8bd5a5d1ea3c8a (patch)
tree4cc0ed1e586136d931397d3b116be20d6d487688 /cache.h
parentMerge branch 'il/maint-xmallocz' into maint (diff)
parentt0101: use a fixed timestamp when searching in the reflog (diff)
downloadtgif-410e99fadf25b65b70d9bf90fd8bd5a5d1ea3c8a.tar.xz
Merge branch 'jc/maint-reflog-bad-timestamp' into maint
* jc/maint-reflog-bad-timestamp: t0101: use a fixed timestamp when searching in the reflog Update @{bogus.timestamp} fix not to die() approxidate_careful() reports errorneous date string
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index bf468e5235..04ae824d64 100644
--- a/cache.h
+++ b/cache.h
@@ -747,7 +747,8 @@ const char *show_date_relative(unsigned long time, int tz,
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 *);
+#define approxidate(s) approxidate_careful((s), NULL)
+unsigned long approxidate_careful(const char *, int *);
unsigned long approxidate_relative(const char *date, const struct timeval *now);
enum date_mode parse_date_format(const char *format);