summaryrefslogtreecommitdiff
path: root/src/tree-cache.h
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-09-18 11:53:24 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-09-24 11:00:51 +0200
commit062804570c3e25170b52f849da173f8266b5e33e (patch)
tree549b2179523a84912e45cbf9490733474dc49b5c /src/tree-cache.h
parent3a495c19bd280f5455047a9ac0e936f2c2f2f9a9 (diff)
downloadlibgit2-062804570c3e25170b52f849da173f8266b5e33e.tar.gz
Join typedef and struct definitions in single file.
Diffstat (limited to 'src/tree-cache.h')
-rw-r--r--src/tree-cache.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tree-cache.h b/src/tree-cache.h
index 90c82dbbf..78017127c 100644
--- a/src/tree-cache.h
+++ b/src/tree-cache.h
@@ -11,7 +11,7 @@
#include "common.h"
#include "git2/oid.h"
-struct git_tree_cache {
+typedef struct {
struct git_tree_cache *parent;
struct git_tree_cache **children;
size_t children_count;
@@ -20,9 +20,7 @@ struct git_tree_cache {
git_oid oid;
size_t namelen;
char name[GIT_FLEX_ARRAY];
-};
-
-typedef struct git_tree_cache 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);