Add git churn
This commit is contained in:
1 parent
ca169d825b
commit
49fafdb0c5
3 files changed
+33
-9
No files matched your search
@@ -0,0 +1,23 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [
|
||||
(pkgs.writeShellApplication {
|
||||
name = "git-churn";
|
||||
|
||||
runtimeInputs = with pkgs; [
|
||||
git
|
||||
coreutils
|
||||
gnugrep
|
||||
];
|
||||
|
||||
text = ''
|
||||
git log -M -C --name-only --format='format:' "$@" |
|
||||
sort |
|
||||
grep -v '^$' |
|
||||
uniq -c |
|
||||
sort -n
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user