aboutsummaryrefslogtreecommitdiff
path: root/tools/git-blame-stats/default.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-06-18 14:31:41 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-18 14:38:19 -0700
commitb1f40904dfe1eaf12f3959ac5c80b9e748a240d6 (patch)
treeba28225679fb27509f6769d4be2e4d8a0a80eb31 /tools/git-blame-stats/default.nix
parentref(gerrit): add the plugin to delete projects (diff)
downloadinfra-b1f40904dfe1eaf12f3959ac5c80b9e748a240d6.tar.gz
feat(tools/git-blame-stats): add a CLI to report git blame statistics
Running this command in a repository will report how many lines in the current paths were created by different author, for a given revision. If no revision is specific, HEAD is assumed. Change-Id: I3fbed4f35a05e12fef22a72d7231727c05c50c96 Reviewed-on: https://cl.fcuny.net/c/world/+/445 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
Diffstat (limited to '')
-rw-r--r--tools/git-blame-stats/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/git-blame-stats/default.nix b/tools/git-blame-stats/default.nix
new file mode 100644
index 0000000..8897b67
--- /dev/null
+++ b/tools/git-blame-stats/default.nix
@@ -0,0 +1,15 @@
+{ pkgs, ... }:
+
+pkgs.buildGoModule rec {
+ name = "git-blame-stats";
+ src = ./.;
+ vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
+ nativeBuildInputs = with pkgs; [ go ];
+
+ meta = with pkgs.lib; {
+ description = "CLI to reports git blame statistics per author.";
+ license = licenses.mit;
+ platforms = platforms.linux;
+ maintainers = [ ];
+ };
+}