diff options
author | Edward Thomson <ethomson@microsoft.com> | 2014-07-09 17:58:39 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2014-08-14 08:52:20 -0500 |
commit | c180c06586050a33f6e8a6d25cc30b7bcbef702d (patch) | |
tree | b05d0f67ad9c3320bd7c3dd42a4b53334119619b /tests | |
parent | e62f96dea5a46098cbca5a287f29ca811003bd68 (diff) | |
download | libgit2-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 'tests')
-rw-r--r-- | tests/clone/transport.c | 1 | ||||
-rw-r--r-- | tests/structinit/structinit.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/clone/transport.c b/tests/clone/transport.c index 27568f228..46c16a241 100644 --- a/tests/clone/transport.c +++ b/tests/clone/transport.c @@ -2,6 +2,7 @@ #include "git2/clone.h" #include "git2/transport.h" +#include "git2/sys/transport.h" #include "fileops.h" static int custom_transport( diff --git a/tests/structinit/structinit.c b/tests/structinit/structinit.c index 38bedada7..def9fefc0 100644 --- a/tests/structinit/structinit.c +++ b/tests/structinit/structinit.c @@ -2,6 +2,7 @@ #include <git2/sys/config.h> #include <git2/sys/odb_backend.h> #include <git2/sys/refdb_backend.h> +#include <git2/sys/transport.h> #define STRINGIFY(s) #s |