git2_auth
An authentication handler to be used with git2_rs
. An example usage can be seen below. I used the following repos:
TODO
- User defined ssh handlers
- User provided username trials
Example Usage
// Setup remote callbacks
let mut callback = new;
let config = open_default.unwrap;
// Setup authentication handler
let mut auth_handler = default_with_config;
callback.credentials;
// Create fetch options
let mut fetch_options = new;
fetch_options
.remote_callbacks
.download_tags
.update_fetchhead;
// Clone the repo
new
.branch
.fetch_options
.clone
.unwrap;