Crate git_function_history
source · [−]Re-exports
pub use things::Block;pub use things::BlockType;pub use things::CommitFunctions;pub use things::Function;pub use things::FunctionHistory;Modules
Functions
Checks if git is installed if its not it will error out with git is not installed.
If not it will get all the commits along with the date.
It the creates a vector of CommitFunctions structs.
it goes the command output and splits it into the commit id, and date.
Using the find_funtions_in_commit it will find all the functions matching the name in the commit.
It will then create a new CommitFunctions struct with the id, date, and the the functions.
It will then return the vector of CommitFunctions structs if contents of any of the commits is not empty.
If not it will error out with no history found.