Add git-graph script
All checks were successful
/ check (push) Successful in 1m41s

This commit is contained in:
Oliver Davies 2025-07-11 02:00:23 +01:00
parent 3c76e2edea
commit 2bd14ac1a8
3 changed files with 19 additions and 0 deletions

17
packages/git-graph.nix Normal file
View file

@ -0,0 +1,17 @@
{ 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"
'';
}