Expand description
Bindings to gitstatusd
gitstatusd is a c++ binary that provides extreamly fast alternative
to git status
. This project is a library that make comunicating with
that binary easier.
let mut gsd = gitstatusd::SatusDaemon::new("/Users/nixon/bin/gitstatusd", ".").unwrap();
let req = gitstatusd::StatusRequest {
id: "".to_owned(),
dir: "/Users/nixon/dev/rs/gitstatusd".to_owned(),
read_index: gitstatusd::ReadIndex::ReadAll,
};
let rsp = gsd.request(req).unwrap();
assert_eq!(rsp.details.unwrap().commits_ahead, 0);
Structs§
- GitDetails
- Details about git state.
- GitStatus
- The result of a request for the git status.
- Satus
Daemon - The daemon that gets
git status
- Status
Request - A Request to be sent to the demon.
Enums§
- Read
Index - Tell gitstatusd weather or not to read the git index
- Responce
Parse Error - An error if the responce from gitstatusd couldn’t be parsed