Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lnds/rs-git-lib
- Owner: lnds
- License: apache-2.0
- Created: 2020-05-30T16:19:55.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-07T01:29:16.000Z (over 4 years ago)
- Last Synced: 2024-10-25T16:52:56.250Z (3 months ago)
- Topics: git, rust, rust-lang, rust-library
- Language: Rust
- Size: 99.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
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