summaryrefslogtreecommitdiff
path: root/src/repository.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-01-29 01:56:25 +0200
committerVicent Marti <tanoku@gmail.com>2011-01-30 02:35:29 +0200
commit2f8a8ab24b034cb91e6ce80a7aa8cc330b7baebf (patch)
tree4729e6dc622a3c5a5da31f126b2e03091c597e14 /src/repository.h
parent9282e921a394d422188ee43e18a63d418f88ac95 (diff)
downloadlibgit2-2f8a8ab24b034cb91e6ce80a7aa8cc330b7baebf.tar.gz
Refactor reference parsing code
Several changes have been committed to allow the user to create in-memory references and write back to disk. Peeling of symbolic references has been made explicit. Added getter and setter methods for all attributes on a reference. Added corresponding documentation. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/repository.h')
-rw-r--r--src/repository.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/repository.h b/src/repository.h
index 1e9e0a5b9..5bf041140 100644
--- a/src/repository.h
+++ b/src/repository.h
@@ -28,7 +28,8 @@ struct git_repository {
git_odb *db;
git_index *index;
git_hashtable *objects;
- git_reference_database *ref_database;
+
+ git_refcache references;
char *path_repository;
char *path_index;