cache_tree_find(): remove redundant check
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 2c853ba856110ab09c6dbbaf2f07a49f4fde92d9..415d8830809cbb8a9651004184a01315ee8c7c3e 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -966,6 +966,15 @@ struct ident_split {
  */
 extern int split_ident_line(struct ident_split *, const char *, int);
 
+/*
+ * Compare split idents for equality or strict ordering. Note that we
+ * compare only the ident part of the line, ignoring any timestamp.
+ *
+ * Because there are two fields, we must choose one as the primary key; we
+ * currently arbitrarily pick the email.
+ */
+extern int ident_cmp(const struct ident_split *, const struct ident_split *);
+
 struct checkout {
        const char *base_dir;
        int base_dir_len;