summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-01-27 10:44:06 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-01-27 10:44:07 -0800
commit9bb528709878d26ac75bf0cb075cc694acd0d69d (patch)
tree4273e5df7a1c2f99269256eb3641167acd5a4cf9 /cache.h
parentMerge branch 'mh/attr-macro-doc' (diff)
parentrefname_match(): always use the rules in ref_rev_parse_rules (diff)
downloadtgif-9bb528709878d26ac75bf0cb075cc694acd0d69d.tar.xz
Merge branch 'mh/retire-ref-fetch-rules'
Code simplification. * mh/retire-ref-fetch-rules: refname_match(): always use the rules in ref_rev_parse_rules
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/cache.h b/cache.h
index c9efe88e9e..763c961520 100644
--- a/cache.h
+++ b/cache.h
@@ -894,9 +894,12 @@ extern int dwim_log(const char *str, int len, unsigned char *sha1, char **ref);
extern int interpret_branch_name(const char *str, int len, struct strbuf *);
extern int get_sha1_mb(const char *str, unsigned char *sha1);
-extern int refname_match(const char *abbrev_name, const char *full_name, const char **rules);
-extern const char *ref_rev_parse_rules[];
-#define ref_fetch_rules ref_rev_parse_rules
+/*
+ * Return true iff abbrev_name is a possible abbreviation for
+ * full_name according to the rules defined by ref_rev_parse_rules in
+ * refs.c.
+ */
+extern int refname_match(const char *abbrev_name, const char *full_name);
extern int create_symref(const char *ref, const char *refs_heads_master, const char *logmsg);
extern int validate_headref(const char *ref);