Count how many versions exist of each file in a git repository.
Usage:
$ churn
15 src/main.rs
5 Cargo.toml
5 Cargo.lock
1 README.md
1 .gitignore
This prints the name of every file that ever existed in HEAD
or any
preceding commit, along with the number of different versions of that
file in those commits.
Build it with --release
: some Git repositories are pretty big!
- Install Rust.
- Clone this repository and
cd
into it. cargo build --release
- This builds the
churn
executable under./target/release
. Copy it to a directory in your PATH.