Expand description

This crate gathers relevant git info from any Repo. Some of the info returned includes:

  • Git status info: Checks if a repo is dirty, has been modified and so on.
  • Commits: Gathers and shows information for the last 10 commits

Example

 // let dir = "/path/to/repo"; <- Point to the location of t=your repo
 let info = Info::new(&dir).status_info()?.commit_info()?;
 println("{:#?}", info);

Structs

Struct holding info of each commit

The main struct that returns combined Status and Commits info

The Status Struct: Holds information about the status of the repo