Sha256: 706137bc211b6ae71cdd121785eb5f9a1ca7be32dd7fd0301567c1e3e303f0a7

Contents?: true

Size: 1.16 KB

Versions: 53

Compression:

Stored size: 1.16 KB

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 "pool.h"
#include "buffer.h"
#include "git2/oid.h"

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

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

int git_tree_cache_write(git_buf *out, git_tree_cache *tree);
int git_tree_cache_read(git_tree_cache **tree, const char *buffer, size_t buffer_size, git_pool *pool);
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);
int git_tree_cache_new(git_tree_cache **out, const char *name, git_pool *pool);
/**
 * Read a tree as the root of the tree cache (like for `git read-tree`)
 */
int git_tree_cache_read_tree(git_tree_cache **out, const git_tree *tree, git_pool *pool);
void git_tree_cache_free(git_tree_cache *tree);

#endif

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
rugged-0.26.7 vendor/libgit2/src/tree-cache.h
rugged-0.26.6 vendor/libgit2/src/tree-cache.h
rugged-0.26.3 vendor/libgit2/src/tree-cache.h
rugged-0.26.0 vendor/libgit2/src/tree-cache.h
rugged-0.26.0b5 vendor/libgit2/src/tree-cache.h
rugged-0.26.0b4 vendor/libgit2/src/tree-cache.h
rugged-0.26.0b3 vendor/libgit2/src/tree-cache.h
rugged-0.26.0b2 vendor/libgit2/src/tree-cache.h
rugged-0.26.0b1 vendor/libgit2/src/tree-cache.h
rugged-0.25.1.1 vendor/libgit2/src/tree-cache.h
rugged-0.24.6.1 vendor/libgit2/src/tree-cache.h
rugged-0.25.1 vendor/libgit2/src/tree-cache.h
rugged-0.24.5 vendor/libgit2/src/tree-cache.h
rugged-0.25.0 vendor/libgit2/src/tree-cache.h
rugged-0.25.0b10 vendor/libgit2/src/tree-cache.h
rugged-0.25.0b9 vendor/libgit2/src/tree-cache.h
rugged-0.25.0b8 vendor/libgit2/src/tree-cache.h
rugged-0.25.0b7 vendor/libgit2/src/tree-cache.h
rugged-0.25.0b6 vendor/libgit2/src/tree-cache.h
rugged-0.25.0b5 vendor/libgit2/src/tree-cache.h