Code

approxidate_careful() reports errorneous date string
[git.git] / cache.h
diff --git a/cache.h b/cache.h
index b90f671f7c2e00f9bd083f884d4548be156b76b0..0f163dbbe11462be9ed96b65371e3e07a31bc4a3 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -740,7 +740,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);