summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-10-28 17:18:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-10-28 17:18:43 (GMT)
commitda212eabec969f0a45475b6a962b06c103a3ec65 (patch)
tree30ba87a33028ff84b6a2c6ba61a60e8bb4788ed4 /cache.h
parent77bc4302dc93ac33891c72df59d9426eb6d06d0b (diff)
parent662cc30cd048f2ccd7ba8d1540e0768ae264c0dd (diff)
downloadgit-da212eabec969f0a45475b6a962b06c103a3ec65.zip
git-da212eabec969f0a45475b6a962b06c103a3ec65.tar.gz
git-da212eabec969f0a45475b6a962b06c103a3ec65.tar.bz2
Merge branch 'jk/format-patch-from' into maint
"format-patch --from=<whom>" forgot to omit unnecessary in-body from line, i.e. when <whom> is the same as the real author. * jk/format-patch-from: format-patch: print in-body "From" only when needed
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 85b544f..88d373d 100644
--- 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;