summaryrefslogtreecommitdiff
path: root/include/git2/net.h
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-11-27 13:15:43 -0800
committerBen Straub <bs@github.com>2012-11-27 13:19:49 -0800
commitdf705148ecc0d0a4c78f7a3b0903527918e38149 (patch)
tree89d5d71d0b2fc45182a884e4aa64a7b4338d7f7d /include/git2/net.h
parent74f9132212a1c634c45241852dbd8564427e964b (diff)
downloadlibgit2-df705148ecc0d0a4c78f7a3b0903527918e38149.tar.gz
API updates for remote.h
Includes typedef for git_direction, and renames for GIT_DIR_[FETCH|PUSH] to GIT_DIRECTION_(\1).
Diffstat (limited to 'include/git2/net.h')
-rw-r--r--include/git2/net.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/git2/net.h b/include/git2/net.h
index 734ee708f..2543ff8e0 100644
--- a/include/git2/net.h
+++ b/include/git2/net.h
@@ -27,8 +27,10 @@ GIT_BEGIN_DECL
* gets called.
*/
-#define GIT_DIR_FETCH 0
-#define GIT_DIR_PUSH 1
+typedef enum {
+ GIT_DIRECTION_FETCH = 0,
+ GIT_DIRECTION_PUSH = 1
+} git_direction;
/**