This commit is contained in:
parent
3c76e2edea
commit
2bd14ac1a8
3 changed files with 19 additions and 0 deletions
17
packages/git-graph.nix
Normal file
17
packages/git-graph.nix
Normal 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"
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue