home/git: add rebase-fixups script

This commit is contained in:
2024-11-13 16:57:00 +01:00
parent a5cad921ff
commit 84c9562bfc
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -54,6 +54,7 @@ in
authors = "shortlog --summary --numbered --email";
si = "switch-interactive";
ff = "fixup-fixup";
rf = "rebase-fixups";
pp = "post-pr";
subs = "submodule update --init --recursive";
rebase-author = "rebase -i -x \"git commit --amend --reset-author -CHEAD\"";
@@ -277,6 +278,11 @@ in
runtimeInputs = with pkgs; [ cfg.package ];
text = lib.fileContents ./scripts/git-fixup-fixup.sh;
})
(pkgs.writeShellApplication {
name = "git-rebase-fixups";
runtimeInputs = with pkgs; [ cfg.package gnused ];
text = lib.fileContents ./scripts/git-rebase-fixups.sh;
})
(pkgs.writeShellApplication {
name = "git-switch-interactive";
runtimeInputs = with pkgs; [ cfg.package fzf gnused coreutils ];