]> git.proxmox.com Git - libgit2.git/commit - include/git2/sys/transport.h
Custom transport: minor cleanups
authorEdward Thomson <ethomson@microsoft.com>
Wed, 9 Jul 2014 21:58:39 +0000 (17:58 -0400)
committerEdward Thomson <ethomson@edwardthomson.com>
Thu, 14 Aug 2014 13:52:20 +0000 (08:52 -0500)
commitc180c06586050a33f6e8a6d25cc30b7bcbef702d
treeb05d0f67ad9c3320bd7c3dd42a4b53334119619b
parente62f96dea5a46098cbca5a287f29ca811003bd68
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://").
CHANGELOG.md
include/git2/remote.h
include/git2/sys/transport.h [new file with mode: 0644]
include/git2/transport.h
include/git2/types.h
src/remote.h
src/transport.c
src/transports/git.c
src/transports/smart.h
tests/clone/transport.c
tests/structinit/structinit.c