[][src]Crate gitstatusd

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.

SatusDaemon

The daemon that gets git status

StatusRequest

A Request to be sent to the demon.

Enums

ReadIndex

Tell gitstatusd weather or not to read the git index

ResponceParseError

An error if the responce from gitstatusd couldn't be parsed