Crates.io | rustygit |
lib.rs | rustygit |
version | 0.5.0 |
source | src |
created_at | 2019-11-26 21:36:08.736814 |
updated_at | 2023-02-16 20:53:13.071122 |
description | A simple interface for runnig Git commands |
homepage | |
repository | https://github.com/keirlawson/rusty-git |
max_upload_size | |
id | 184592 |
size | 29,959 |
A high-level library for interacting with git
Add the following to your cargo.toml
:
[dependencies]
rustygit = "0.4"
use rustygit;
let repo = rustygit::Repository::new(".");
let branches = repo.list_branches().unwrap();
println!("branches:");
for branch in branches {
println!("{}", branch);
}
Git2-rs is a mature and featureful Git library and unlike this library does not require that git
be on the users $PATH.
This library does however have a few advantages over git2-rs: