summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-02-10 13:02:43 -0800
committerJunio C Hamano <gitster@pobox.com>2010-02-10 13:02:43 -0800
commit410e99fadf25b65b70d9bf90fd8bd5a5d1ea3c8a (patch)
tree4cc0ed1e586136d931397d3b116be20d6d487688 /cache.h
parentc329898abb167f05e37f3d0305e833127a26a4d0 (diff)
parent6c647af3060b8dd20da0e0b21dcd0eb95ec70841 (diff)
downloadgit-410e99fadf25b65b70d9bf90fd8bd5a5d1ea3c8a.tar.gz
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);