diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-08-07 14:02:04 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-08-18 02:34:09 +0200 |
commit | 1564db11fe291eb21b5f57a063deb482cedf323d (patch) | |
tree | 2b8657e5a92f8ece775f46753fdf2da3f6e998a2 /include/git2/net.h | |
parent | ade3c9bb88b0afb4b025cf92c74e17704c9bc4f4 (diff) | |
download | libgit2-1564db11fe291eb21b5f57a063deb482cedf323d.tar.gz |
Remove enum git_whn
Instead, use flags inside the git_remote_head structure.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'include/git2/net.h')
-rw-r--r-- | include/git2/net.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/git2/net.h b/include/git2/net.h index c2260fc3..7c49f804 100644 --- a/include/git2/net.h +++ b/include/git2/net.h @@ -48,18 +48,12 @@ 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; - int local; /** Exists locally */ + int local:1, /* available locally */ + want:1; /* want to update */ git_oid oid; git_oid loid; char *name; |