From dbdfd9635b81f2d0d303c3d76d0bc830bd84d628 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 15 Mar 2023 08:50:03 +0100 Subject: [PATCH] feat: limit `git graph` to 32 lines --- home-manager/git.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-manager/git.nix b/home-manager/git.nix index 7474d88..874b218 100644 --- a/home-manager/git.nix +++ b/home-manager/git.nix @@ -57,7 +57,7 @@ aliases = { identity = ''! git config user.name "$(git config user.$1.name)"; git config user.email "$(git config user.$1.email)"; git config user.signingkey "$(git config user.$1.signingkey)"; git config commit.gpgsign "true"; : ''; clone-worktree = ''! mkdir $2; git clone $1 $2/.base; BRANCH=`git -C $2/.base symbolic-ref --short HEAD`; echo "branch is $BRANCH"; git -C $2/.base checkout --detach HEAD; git -C $2/.base worktree add ../$BRANCH; :''; - graph = "log --graph --all"; + graph = "log --graph --all --max-count 32"; }; ignores = [