Add git churn
This commit is contained in:
1 parent
ca169d825b
commit
49fafdb0c5
3 files changed
+33
-9
No files matched your search
Generated
+9
-9
@@ -23,11 +23,11 @@
|
||||
},
|
||||
"nix-flatpak": {
|
||||
"locked": {
|
||||
"lastModified": 1789296110,
|
||||
"narHash": "sha256-8wVBx1J5hR1DzUyzlrm2DkMXx7RJbATh3+R+qBBILlI=",
|
||||
"lastModified": 1789496567,
|
||||
"narHash": "sha256-f9ze1ph2u0lk/Hm7/w/OvC0ESL1z0LbQ5UDgcOwQzLM=",
|
||||
"owner": "gmodena",
|
||||
"repo": "nix-flatpak",
|
||||
"rev": "0f392e302963bce69787c495aa95ef1d50dda889",
|
||||
"rev": "07e8980c2fe421c93c0749f6246db34422827f67",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -38,11 +38,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1789344334,
|
||||
"narHash": "sha256-vdhpDJ3Lr24lkZ+fDCjmBRRtw9/vcSzkqGJOJyF5h2U=",
|
||||
"lastModified": 1789998861,
|
||||
"narHash": "sha256-62XMQD4WLdMAfdT0/8gJmPH2dKeTw908ryNloAplTr8=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "c3eea5b2156db11c7eeeada3dc737711255b253e",
|
||||
"rev": "1e8bc658fc985ef27ccd66d107d767b32bb7ef98",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -54,11 +54,11 @@
|
||||
},
|
||||
"nixpkgs-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1789264731,
|
||||
"narHash": "sha256-llGJbC0CcU8DfROr6mZjRJgMLQd/SKwfpzxJH/2lHO4=",
|
||||
"lastModified": 1789994327,
|
||||
"narHash": "sha256-2EAysR68bR+V5O63LuZWFvhK55sYGLzXWi4uEiEHjKw=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "02f5696b0e6097e589076d886b317b83ff0437d7",
|
||||
"rev": "3396d0584677afd0e6ce20ac2474eab0adf0fb2b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
../../modules/bubblewrap.nix
|
||||
../../modules/socat.nix
|
||||
../../modules/cursor-cli.nix
|
||||
../../modules/git-churn.nix
|
||||
];
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
@@ -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