commit_info

Crates.iocommit_info
lib.rscommit_info
version0.1.1
sourcesrc
created_at2022-03-31 22:50:49.322738
updated_at2022-04-01 00:21:01.28441
descriptionGather relevant commit and status information from git repos.
homepage
repositoryhttps://github.com/mugendi/commit_info
max_upload_size
id559946
size13,376
Anthony Mugendi (mugendi)

documentation

README

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);

Commit count: 2

cargo fmt