andymeneely / git-churn

(ALPHA) A fast tool for collecting code churn metrics from git repositories.
8 stars 2 forks source link

Command line interaction: commit and filepath specification #10

Closed andymeneely closed 4 years ago

andymeneely commented 4 years ago

The command line executable should be able to run like this:

$ cd therepo/
$ git-churn 00da33207bbb17a149d99301012006fbd86c80e4 -- testdata/file.txt

Eventually we'll incorporate a Git revparse, but for now it's probably easier to just parse this string as it is before we get fancier.

The output should be a human-readable list of the metrics from #5.

This issue also assumes that you'll need to research how to do command line parsing in Go. Use a library or something built-in that makes this easy and maintainable down the road.