diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2012-12-11 22:31:21 -0600 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2012-12-19 16:57:30 -0600 |
| commit | 7fcec8342890031a0d22f0d013833badd81091e8 (patch) | |
| tree | 9b09ab2eb1d111d5662a1f0f0b7fa13df07587d0 /src/fetchhead.h | |
| parent | 5c3c86b06e84ac70735b2629209de2dcc0e09034 (diff) | |
| download | libgit2-7fcec8342890031a0d22f0d013833badd81091e8.tar.gz | |
fetchhead reading/iterating
Diffstat (limited to 'src/fetchhead.h')
| -rw-r--r-- | src/fetchhead.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/fetchhead.h b/src/fetchhead.h index ec7c1985b..e694f8aa8 100644 --- a/src/fetchhead.h +++ b/src/fetchhead.h @@ -9,18 +9,25 @@ #include "vector.h" -typedef struct git_fetchhead_ref { +struct git_fetchhead_ref { git_oid oid; unsigned int is_merge; char *ref_name; char *remote_url; -} git_fetchhead_ref; +}; -int git_fetchhead_ref_create(git_fetchhead_ref **fetchhead_ref_out, git_oid *oid, int is_merge, const char *ref_name, const char *remote_url); +typedef struct git_fetchhead_ref git_fetchhead_ref; + +int git_fetchhead_ref_create( + git_fetchhead_ref **fetchhead_ref_out, + git_oid *oid, + unsigned int is_merge, + const char *ref_name, + const char *remote_url); int git_fetchhead_ref_cmp(const void *a, const void *b); -int git_fetchhead_write(git_repository *repository, git_vector *fetchhead_refs); +int git_fetchhead_write(git_repository *repo, git_vector *fetchhead_refs); void git_fetchhead_ref_free(git_fetchhead_ref *fetchhead_ref); |
