diff options
| author | schu <schu-github@schulog.org> | 2011-08-10 16:19:42 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-11-06 03:15:19 +0100 |
| commit | a46ec45746f965f2895098e058979225d92d66e5 (patch) | |
| tree | 85169e6f62855d3c96df73a474d410660ec0f2b3 /src/refs.h | |
| parent | d3104fa0a3f3711729b45346e475354440d46cc3 (diff) | |
| download | libgit2-a46ec45746f965f2895098e058979225d92d66e5.tar.gz | |
refs: split internal and external references
Currently libgit2 shares pointers to its internal reference cache with
the user. This leads to several problems like invalidation of reference
pointers when reordering the cache or manipulation of the cache from
user side.
Give each user its own git_reference instead of leaking the internal
representation (struct reference).
Add the following new API functions:
* git_reference_free
* git_reference_is_packed
Signed-off-by: schu <schu-github@schulog.org>
Diffstat (limited to 'src/refs.h')
| -rw-r--r-- | src/refs.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/refs.h b/src/refs.h index 33c1e6983..db0f5c4df 100644 --- a/src/refs.h +++ b/src/refs.h @@ -35,8 +35,6 @@ struct git_reference { git_repository *owner; char *name; - unsigned int type; - time_t mtime; }; typedef struct { |
