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