Sha256: 0e3858469b1245be36f9e3f5233b0f5d7aeab1383372edfce59c652fc4887972

Contents?: true

Size: 993 Bytes

Versions: 2

Compression:

Stored size: 993 Bytes

Contents

/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */
#ifndef INCLUDE_refdb_h__
#define INCLUDE_refdb_h__

#include "git2/refdb.h"
#include "repository.h"

struct git_refdb {
	git_refcount rc;
	git_repository *repo;
	git_refdb_backend *backend;
};

int git_refdb_exists(
	int *exists,
	git_refdb *refdb,
	const char *ref_name);

int git_refdb_lookup(
	git_reference **out,
	git_refdb *refdb,
	const char *ref_name);

int git_refdb_foreach(
	git_refdb *refdb,
	unsigned int list_flags,
	git_reference_foreach_cb callback,
	void *payload);

int git_refdb_foreach_glob(
	git_refdb *refdb,
	const char *glob,
	unsigned int list_flags,
	git_reference_foreach_cb callback,
	void *payload);

int git_refdb_write(git_refdb *refdb, const git_reference *ref);

int git_refdb_delete(struct git_refdb *refdb, const git_reference *ref);

#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rugged-0.18.0.gh.de28323 vendor/libgit2/src/refdb.h
rugged-0.18.0.b1 vendor/libgit2/src/refdb.h