rust-git2-codecommit

This is a credential provider that you can give to git2::RemoteCallbacks::credentials and have it use AWS credentials from the usual locations.

It will then generate the username and password to use AWS CodeCommit via HTTPS, similar to the AWS CLI credential helper.

(You can also probably just set up the credential helper and libgit2 should do the right thing, but.)

This module uses code copied from private functions in rusoto, available under the MIT license.

Example

```rust use git2::{FetchOptions, RemoteCallbacks}; use git2::build::RepoBuilder; use git2codecommit::codecommitcredentials;

let mut remotecbs = RemoteCallbacks::new(); remotecbs.credentials(codecommitcredentials); let mut fetchopts = FetchOptions::new(); fetchopts.remotecallbacks(remotecbs); let repo = RepoBuilder::new().fetchoptions(fetchopts).clone(url, somepath).unwrap(); // etc. ```