Add git churn

This commit is contained in:
Armel van Ravels committed 2026-09-22 16:35:33 +02:00
1 parent ca169d825b
commit 49fafdb0c5
3 files changed
+33 -9

No files matched your search

+23
View File
@@ -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
'';
})
];
}