X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=remote.h;h=a46a5be131caf1d1d71f97cab3c3ba2cebb6386c;hb=c841aa8b903200f5d7830c7c4ab8d62b5ef44c5c;hp=c6163ff5b1f7e7c96bedaa9a6b561a9f4a8ed7c2;hpb=e782e12f89955dfb0be82098af3cfdd8dd0eaf80;p=git.git diff --git a/remote.h b/remote.h index c6163ff5b..a46a5be13 100644 --- a/remote.h +++ b/remote.h @@ -1,8 +1,15 @@ #ifndef REMOTE_H #define REMOTE_H +enum { + REMOTE_CONFIG, + REMOTE_REMOTES, + REMOTE_BRANCHES +}; + struct remote { const char *name; + int origin; const char **url; int url_nr; @@ -55,9 +62,7 @@ struct refspec { extern const struct refspec *tag_refspec; -struct ref *alloc_ref(unsigned namelen); - -struct ref *alloc_ref_from_str(const char* str); +struct ref *alloc_ref(const char *name); struct ref *copy_ref_list(const struct ref *ref);