summaryrefslogtreecommitdiff
path: root/include/git2/net.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-08-07 14:02:04 +0200
committerVicent Marti <tanoku@gmail.com>2011-08-18 02:34:09 +0200
commit1564db11fe291eb21b5f57a063deb482cedf323d (patch)
tree2b8657e5a92f8ece775f46753fdf2da3f6e998a2 /include/git2/net.h
parentade3c9bb88b0afb4b025cf92c74e17704c9bc4f4 (diff)
downloadlibgit2-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.h10
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;