]> git.proxmox.com Git - libgit2.git/commit
transports: allow the creds callback to say it doesn't exist
authorCarlos Martín Nieto <cmn@dwim.me>
Sat, 19 Apr 2014 13:52:58 +0000 (15:52 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Tue, 22 Apr 2014 12:34:26 +0000 (14:34 +0200)
commitbc0a61986745b89258a98773f88bd98c44ef88d5
treee86cff8daec29c4eb82c214ca01baac4f9a43533
parent2efd7df6b11e8c646d05870965bb4588d6b6d425
transports: allow the creds callback to say it doesn't exist

Allow the credentials callback to return GIT_PASSTHROUGH to make the
transports code behave as though none was set.

This should make it easier for bindings to behave closer to the C code
when there is no credentials callback set at their level.
include/git2/remote.h
src/transports/http.c
src/transports/ssh.c