Blame src/fetchhead.h

Packit ae9e2a
/*
Packit ae9e2a
 * Copyright (C) the libgit2 contributors. All rights reserved.
Packit ae9e2a
 *
Packit ae9e2a
 * This file is part of libgit2, distributed under the GNU GPL v2 with
Packit ae9e2a
 * a Linking Exception. For full terms see the included COPYING file.
Packit ae9e2a
 */
Packit ae9e2a
#ifndef INCLUDE_fetchhead_h__
Packit ae9e2a
#define INCLUDE_fetchhead_h__
Packit ae9e2a
Packit ae9e2a
#include "vector.h"
Packit ae9e2a
Packit ae9e2a
typedef struct git_fetchhead_ref {
Packit ae9e2a
	git_oid oid;
Packit ae9e2a
	unsigned int is_merge;
Packit ae9e2a
	char *ref_name;
Packit ae9e2a
	char *remote_url;
Packit ae9e2a
} git_fetchhead_ref;
Packit ae9e2a
Packit ae9e2a
int git_fetchhead_ref_create(
Packit ae9e2a
	git_fetchhead_ref **fetchhead_ref_out,
Packit ae9e2a
	git_oid *oid,
Packit ae9e2a
	unsigned int is_merge,
Packit ae9e2a
	const char *ref_name,
Packit ae9e2a
	const char *remote_url);
Packit ae9e2a
Packit ae9e2a
int git_fetchhead_ref_cmp(const void *a, const void *b);
Packit ae9e2a
Packit ae9e2a
int git_fetchhead_write(git_repository *repo, git_vector *fetchhead_refs);
Packit ae9e2a
Packit ae9e2a
void git_fetchhead_ref_free(git_fetchhead_ref *fetchhead_ref);
Packit ae9e2a
Packit ae9e2a
#endif