summaryrefslogtreecommitdiff
path: root/include/git2/net.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-06-22 14:53:01 +0200
committerVicent Marti <tanoku@gmail.com>2011-08-18 02:34:07 +0200
commite1f4a761506f61f05e74265633aec76cf75cbd50 (patch)
treefeeec1d37aa786773cbb55beb37aee75276025d8 /include/git2/net.h
parentc94bc192e36f7a13cda8496d5e8e70ad8cbb967c (diff)
downloadlibgit2-e1f4a761506f61f05e74265633aec76cf75cbd50.tar.gz
Add git_fetch_list_want which creates the "want" list
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'include/git2/net.h')
-rw-r--r--include/git2/net.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/git2/net.h b/include/git2/net.h
index 164f0ac0a..ecf4f6c75 100644
--- a/include/git2/net.h
+++ b/include/git2/net.h
@@ -48,10 +48,17 @@ GIT_BEGIN_DECL
#define GIT_DIR_FETCH 0
#define GIT_DIR_PUSH 1
+enum git_whn {
+ GIT_WHN_NONE,
+ GIT_WHN_HAVE,
+ GIT_WHN_WANT,
+};
+
/**
* Remote head description, given out on `ls` calls.
*/
struct git_remote_head {
+ enum git_whn type;
git_oid oid;
char *name;
};