Get rid of the dependency to GNU diff in the tests
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index b84e3decfcd38a349243dc8e3a88e1b5151ced6c..8018b2cd3b20533ea03ce503bc88b8bd0155432e 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -327,7 +327,8 @@ extern void *read_object_with_reference(const unsigned char *sha1,
                                        unsigned long *size,
                                        unsigned char *sha1_ret);
 
-const char *show_date(unsigned long time, int timezone, int relative);
+enum date_mode { DATE_NORMAL = 0, DATE_RELATIVE, DATE_SHORT };
+const char *show_date(unsigned long time, int timezone, enum date_mode mode);
 const char *show_rfc2822_date(unsigned long time, int timezone);
 int parse_date(const char *date, char *buf, int bufsize);
 void datestamp(char *buf, int bufsize);