diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-12-04 17:07:10 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-12-04 17:07:10 -0800 |
commit | 9bbe6db85f368fc4f75cc9f6c4bfaf2269bf0068 (patch) | |
tree | d626f21e0b87a364d213d3fba26cc92d9fb5a3f6 /cache.h | |
parent | Simplify crud() in ident.c (diff) | |
parent | refactor fetch's ref matching to use refname_match() (diff) | |
download | tgif-9bbe6db85f368fc4f75cc9f6c4bfaf2269bf0068.tar.xz |
Merge branch 'sp/refspec-match'
* sp/refspec-match:
refactor fetch's ref matching to use refname_match()
push: use same rules as git-rev-parse to resolve refspecs
add refname_match()
push: support pushing HEAD to real branch name
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -423,6 +423,10 @@ extern const char *resolve_ref(const char *path, unsigned char *sha1, int, int * extern int dwim_ref(const char *str, int len, unsigned char *sha1, char **ref); extern int dwim_log(const char *str, int len, unsigned char *sha1, char **ref); +extern int refname_match(const char *abbrev_name, const char *full_name, const char **rules); +extern const char *ref_rev_parse_rules[]; +extern const char *ref_fetch_rules[]; + extern int create_symref(const char *ref, const char *refs_heads_master, const char *logmsg); extern int validate_headref(const char *ref); |