summaryrefslogtreecommitdiff
path: root/src/remote.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-07-09 17:58:39 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2014-08-14 08:52:20 -0500
commitc180c06586050a33f6e8a6d25cc30b7bcbef702d (patch)
treeb05d0f67ad9c3320bd7c3dd42a4b53334119619b /src/remote.h
parente62f96dea5a46098cbca5a287f29ca811003bd68 (diff)
downloadlibgit2-c180c06586050a33f6e8a6d25cc30b7bcbef702d.tar.gz
Custom transport: minor cleanups
* Move the transport registration mechanisms into a new header under 'sys/' because this is advanced stuff. * Remove the 'priority' argument from the registration as it adds unnecessary complexity. (Since transports cannot decline to operate, only the highest priority transport is ever executed.) Users who require per-priority transports can implement that in their custom transport themselves. * Simplify registration further by taking a scheme (eg "http") instead of a prefix (eg "http://").
Diffstat (limited to 'src/remote.h')
-rw-r--r--src/remote.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/remote.h b/src/remote.h
index 47c4f7221..c471756b8 100644
--- a/src/remote.h
+++ b/src/remote.h
@@ -9,6 +9,7 @@
#include "git2/remote.h"
#include "git2/transport.h"
+#include "git2/sys/transport.h"
#include "refspec.h"
#include "vector.h"