nix-config/packages/git-graph.nix
Oliver Davies 2bd14ac1a8
All checks were successful
/ check (push) Successful in 1m41s
Add git-graph script
2025-07-11 02:00:52 +01:00

17 lines
373 B
Nix

{ pkgs }:
pkgs.writeShellApplication {
name = "git-graph";
runtimeInputs = with pkgs; [ git ];
text = ''
# Based on https://github.com/sdaschner/dotfiles/blob/master/bin/git-graph.
git log \
--abbrev-commit \
--all \
--graph \
--pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%ae>%Creset"
'';
}