Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
refactor fetch's ref matching to use refname_match()
[gitweb.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index fc26a93cbadfe4795d06c99409f0b6e33aa22a20..6a04a667bbb84b13f895ea95f1fadc5e2cb1bb33 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-653,6
+653,13
@@
const char *ref_rev_parse_rules[] = {
NULL
};
+const char *ref_fetch_rules[] = {
+ "%.*s",
+ "refs/%.*s",
+ "refs/heads/%.*s",
+ NULL
+};
+
int refname_match(const char *abbrev_name, const char *full_name, const char **rules)
{
const char **p;