Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lnds/rs-git-lib

Rust Native Git Library
https://github.com/lnds/rs-git-lib

git rust rust-lang rust-library

Last synced: about 1 month ago
JSON representation

Rust Native Git Library

Awesome Lists containing this project

README

        

# rs-git-lib

Rust Native Git Library

## Usage

use rs_git_lib::Repo;
let repo = Repo::clone_from("https://github.com/lnds/rs-git-lib.git", Some("/tmp/rs-git".to_string())).unwrap();

let commits = repo.commits();
assert_eq!(commits[commits.len()].as_commit().unwrap().get_message(), "Initial commit")

## Notes

- only works with http or https for now

- This work started from the ideas and code in Rgit project by @cwbriones: https://github.com/cwbriones/rgit