summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-05-20 09:55:26 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-05-21 12:12:32 +0200
commit306475eb0173d7943a27afee6054af8d0f76bedd (patch)
tree01940bc9610fe5af6ecb9fced14d0f3d3c4f9f77 /include
parent8156835df17d89bd7ce1525792aa13146fab551e (diff)
downloadlibgit2-306475eb0173d7943a27afee6054af8d0f76bedd.tar.gz
remote: expose the remote's symref mappings
Add a symref_target field to git_remote_head to expose the symref mappings to the user.
Diffstat (limited to 'include')
-rw-r--r--include/git2/net.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/git2/net.h b/include/git2/net.h
index e70ba1f71..a727696a2 100644
--- a/include/git2/net.h
+++ b/include/git2/net.h
@@ -41,6 +41,11 @@ struct git_remote_head {
git_oid oid;
git_oid loid;
char *name;
+ /**
+ * If the server send a symref mapping for this ref, this will
+ * point to the target.
+ */
+ char *symref_target;
};
/**