This commit is contained in:
parent
3c76e2edea
commit
2bd14ac1a8
3 changed files with 19 additions and 0 deletions
|
@ -170,6 +170,7 @@ in
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
git-extras
|
git-extras
|
||||||
|
git-graph
|
||||||
git-trim
|
git-trim
|
||||||
stable.git-instafix
|
stable.git-instafix
|
||||||
];
|
];
|
||||||
|
|
|
@ -12,6 +12,7 @@ in
|
||||||
create-script = callPackage ./create-script.nix { };
|
create-script = callPackage ./create-script.nix { };
|
||||||
dev-commit = callPackage ./dev-commit.nix { };
|
dev-commit = callPackage ./dev-commit.nix { };
|
||||||
displayselect = callPackage ./displayselect { };
|
displayselect = callPackage ./displayselect { };
|
||||||
|
git-graph = callPackage ./git-graph.nix { };
|
||||||
mounter = callPackage ./mounter.nix { };
|
mounter = callPackage ./mounter.nix { };
|
||||||
move-firefox-screenshots = callPackage ./move-firefox-screenshots.nix { };
|
move-firefox-screenshots = callPackage ./move-firefox-screenshots.nix { };
|
||||||
notes = callPackage ./notes { };
|
notes = callPackage ./notes { };
|
||||||
|
|
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