]> git.proxmox.com Git - libgit2.git/blame - src/fetchhead.h
Merge pull request #1204 from arrbee/diff-blob-to-buffer
[libgit2.git] / src / fetchhead.h
CommitLineData
b0f6e45d
ET
1/*
2 * Copyright (C) 2009-2012 the libgit2 contributors
3 *
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.
6 */
7#ifndef INCLUDE_fetchhead_h__
8#define INCLUDE_fetchhead_h__
9
10#include "vector.h"
11
7fcec834 12struct git_fetchhead_ref {
b0f6e45d
ET
13 git_oid oid;
14 unsigned int is_merge;
15 char *ref_name;
16 char *remote_url;
7fcec834 17};
b0f6e45d 18
7fcec834
ET
19typedef struct git_fetchhead_ref git_fetchhead_ref;
20
21int git_fetchhead_ref_create(
22 git_fetchhead_ref **fetchhead_ref_out,
23 git_oid *oid,
24 unsigned int is_merge,
25 const char *ref_name,
26 const char *remote_url);
b0f6e45d
ET
27
28int git_fetchhead_ref_cmp(const void *a, const void *b);
29
7fcec834 30int git_fetchhead_write(git_repository *repo, git_vector *fetchhead_refs);
b0f6e45d
ET
31
32void git_fetchhead_ref_free(git_fetchhead_ref *fetchhead_ref);
33
34#endif