diff options
author | Daniel Barkalow <barkalow@iabervon.org> | 2009-11-18 02:42:28 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-17 21:45:44 -0800 |
commit | 72ff894308d4f6eb9f081167377857f7a3268bca (patch) | |
tree | 03cd6caf19a32bd7fbd8d3c416f6a0700366839e /remote.h | |
parent | e65e91ed4af5ed9c5c810a2cd77b8648a0287e66 (diff) | |
download | git-72ff894308d4f6eb9f081167377857f7a3268bca.tar.gz |
Allow helper to map private ref names into normal names
This allows a helper to say that, when it handles "import
refs/heads/topic", the script it outputs will actually write to
refs/svn/origin/branches/topic; therefore, transport-helper should
read it from the latter location after git-fast-import completes.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
-rw-r--r-- | remote.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -91,6 +91,11 @@ void ref_remove_duplicates(struct ref *ref_map); int valid_fetch_refspec(const char *refspec); struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec); +void free_refspec(int nr_refspec, struct refspec *refspec); + +char *apply_refspecs(struct refspec *refspecs, int nr_refspec, + const char *name); + int match_refs(struct ref *src, struct ref **dst, int nr_refspec, const char **refspec, int all); |