diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-02-18 21:57:53 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-03-03 20:23:49 +0200 |
| commit | 86194b2433b993666bb58e7818f5b1f4133c9a43 (patch) | |
| tree | c7165ed2c8d7f3bc291f49ef2d815ec29b24ac30 /src/git2 | |
| parent | 32054c24a26ab386fb56c7333fa723459e7e8dff (diff) | |
| download | libgit2-86194b2433b993666bb58e7818f5b1f4133c9a43.tar.gz | |
Split packed from unpacked references
These two reference types are now stored separately to eventually allow
the removal/renaming of loose references and rewriting of the refs
packfile.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/git2')
| -rw-r--r-- | src/git2/types.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/git2/types.h b/src/git2/types.h index 7bf4d189e..62467ec45 100644 --- a/src/git2/types.h +++ b/src/git2/types.h @@ -140,10 +140,11 @@ typedef struct git_reference git_reference; /** Basic type of any Git reference. */ typedef enum { - GIT_REF_ANY = -2, /** Reference can be an object id reference or a symbolic reference */ - GIT_REF_INVALID = -1, /** Invalid reference */ + GIT_REF_INVALID = 0, /** Invalid reference */ GIT_REF_OID = 1, /** A reference which points at an object id */ GIT_REF_SYMBOLIC = 2, /** A reference which points at another reference */ + GIT_REF_PACKED = 4, + GIT_REF_HAS_PEEL = 8, } git_rtype; /** @} */ |
