]>
git.proxmox.com Git - libgit2.git/blob - src/fetchhead.h
2 * Copyright (C) the libgit2 contributors. All rights reserved.
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
7 #ifndef INCLUDE_fetchhead_h__
8 #define INCLUDE_fetchhead_h__
15 typedef struct git_fetchhead_ref
{
17 unsigned int is_merge
;
22 int git_fetchhead_ref_create(
23 git_fetchhead_ref
**fetchhead_ref_out
,
25 unsigned int is_merge
,
27 const char *remote_url
);
29 int git_fetchhead_ref_cmp(const void *a
, const void *b
);
31 int git_fetchhead_write(git_repository
*repo
, git_vector
*fetchhead_refs
);
33 void git_fetchhead_ref_free(git_fetchhead_ref
*fetchhead_ref
);