Sha256: b88d764dd72245ddb37a38c68a7b6f9b284a2b53309a0a4c724a836a5a66697f

Contents?: true

Size: 875 Bytes

Versions: 7

Compression:

Stored size: 875 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_tree_cache_h__
#define INCLUDE_tree_cache_h__

#include "common.h"
#include "git2/oid.h"

struct git_tree_cache {
	struct git_tree_cache *parent;
	struct git_tree_cache **children;
	size_t children_count;

	ssize_t entries;
	git_oid oid;
	size_t namelen;
	char name[GIT_FLEX_ARRAY];
};

typedef struct git_tree_cache git_tree_cache;

int git_tree_cache_read(git_tree_cache **tree, const char *buffer, size_t buffer_size);
void git_tree_cache_invalidate_path(git_tree_cache *tree, const char *path);
const git_tree_cache *git_tree_cache_get(const git_tree_cache *tree, const char *path);
void git_tree_cache_free(git_tree_cache *tree);

#endif

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rugged-0.21.4 vendor/libgit2/src/tree-cache.h
rugged-0.21.3 vendor/libgit2/src/tree-cache.h
rugged-0.21.2 vendor/libgit2/src/tree-cache.h
rugged-0.21.1b2 vendor/libgit2/src/tree-cache.h
rugged-0.21.1b1 vendor/libgit2/src/tree-cache.h
rugged-0.21.1b0 vendor/libgit2/src/tree-cache.h
rugged-0.21.0 vendor/libgit2/src/tree-cache.h