Merge branch 'wk/gitweb-snapshot-use-if-modified-since'
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 52805748012f97bb8ef3aa67ecc3b0d611d4cd3c..806bf2b76fbbf7b30b70bad65220d5255a67c69e 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -941,6 +941,22 @@ extern const char *fmt_name(const char *name, const char *email);
 extern const char *git_editor(void);
 extern const char *git_pager(int stdout_is_tty);
 
+struct ident_split {
+       const char *name_begin;
+       const char *name_end;
+       const char *mail_begin;
+       const char *mail_end;
+       const char *date_begin;
+       const char *date_end;
+       const char *tz_begin;
+       const char *tz_end;
+};
+/*
+ * Signals an success with 0, but time part of the result may be NULL
+ * if the input lacks timestamp and zone
+ */
+extern int split_ident_line(struct ident_split *, const char *, int);
+
 struct checkout {
        const char *base_dir;
        int base_dir_len;