git2_credentials
Provide credentials function to used with git2::RemoteCallbacks.credentials
Usage
use git2;
use CredentialHandler;
use tempfile;
let mut cb = new;
let git_config = open_default.unwrap;
let mut ch = new;
cb.credentials;
// clone a repository
let mut fo = new;
fo.remote_callbacks
.download_tags
.update_fetchhead;
let dst = tempdir.unwrap;
create_dir_all.unwrap;
new
.branch
.fetch_options
.clone.unwrap;
Build
Credit
Code extracted from:
- cargo/utils.rs at master · rust-lang/cargo (search
with_authentication
)Cargo, a package manager for Rust.
- ffizer
ffizer is a files and folders initializer / generator. Create any kind (or part) of project from template.