Uses old Rust 2015
|0.4.0||Mar 4, 2017|
|0.3.3||Nov 14, 2016|
|0.3.2||Nov 13, 2016|
#1676 in Development tools
Git Historian allows you to collect arbitrary data about a file at each point in its Git history.
Think of it as
git log --follow for every file in a repo, all at once.
It can be useful for automating tasks that require knowledge of a file's history, e.g., updating each source file's copyright header with the years during which the file was modified (because Legal said so).
The library gathers commit info by parsing the output of
git log --name-status,
then builds a tree of the history of all files we care about.
history.rs for details.
This crate analyzes a Git repository (by parsing
git log --name-status),
then builds a tree of the history for a provided list of files.
At each node (corresponding to a delta in the file's history), a user-provided callback is issued to gather desired information.
main.rs for a quick demo.