From 992987c5e53391fecf24851a6d18ce5f80ee8429 Mon Sep 17 00:00:00 2001 From: Bo Jeanes Date: Sat, 17 Aug 2024 21:34:58 +1000 Subject: [PATCH] Improve `git br` alias to show branch metadata Some inspiration from https://gist.github.com/jasonrudolph/1810768 and other places... --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 353c0fe..9702411 100644 --- a/flake.nix +++ b/flake.nix @@ -314,7 +314,10 @@ programs.git = { enable = true; aliases = { - br = "branch"; + br = "branch --format='%(color:red)%(committerdate:iso8601)%(color:reset) %(align:8)(%(ahead-behind:HEAD))%(end) %(color:blue)%(align:40)%(refname:short)%(end)%(color:reset) %(color:white)%(contents:subject) %(color:yellow)(%(committerdate:relative))%(color:reset)' --sort=-creatordate"; + oldestb = "br --sort=committerdate"; + newestb = "br --sort=-committerdate"; + c = "commit -v"; co = "checkout"; commit = "commit -v";