summaryrefslogtreecommitdiff
path: root/src/refs.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-04-17 17:33:51 +0200
committerVicent Marti <tanoku@gmail.com>2013-04-17 17:33:51 +0200
commit3be933b143731bbe3a5cadcdf70b8ab205a629c0 (patch)
tree9688ce16cb1fa2ee16499d20e5d501a2f3d98d90 /src/refs.h
parentf124ebd457bfbf43de3516629aaba5a279636e04 (diff)
downloadlibgit2-3be933b143731bbe3a5cadcdf70b8ab205a629c0.tar.gz
refs: Add `git_referene_target_peel`
Diffstat (limited to 'src/refs.h')
-rw-r--r--src/refs.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/refs.h b/src/refs.h
index 7d63c3fbd..b0aa56a54 100644
--- a/src/refs.h
+++ b/src/refs.h
@@ -49,11 +49,14 @@
struct git_reference {
git_refdb *db;
-
git_ref_t type;
union {
- git_oid oid;
+ struct {
+ git_oid oid;
+ git_oid peel;
+ } direct;
+
char *symbolic;
} target;