From a0f5d365ebcb8abcc4747a4d6f67af01ff2d4aee Mon Sep 17 00:00:00 2001 From: oddlama Date: Mon, 18 Sep 2023 02:13:23 +0200 Subject: [PATCH] feat: always gpg-sign on git rebase --- users/myuser/git.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/users/myuser/git.nix b/users/myuser/git.nix index fe905c8..a2e4654 100644 --- a/users/myuser/git.nix +++ b/users/myuser/git.nix @@ -19,6 +19,7 @@ s = "status"; tags = "tag -l"; t = "tag -s -m ''"; + rebase = "rebase --gpg-sign"; fixup = ''!f() { TARGET=$(git rev-parse "$1"); git commit --fixup=$TARGET ''${@:2} && EDITOR=true git rebase -i --gpg-sign --autostash --autosquash $TARGET^; }; f''; # An alias that uses the previous commit message by default. # Useful when you mess up entering the signing password and git aborts.