From 44ef6219949675c6ab46b230a7f87fb8f6c9665f Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 5 Jun 2026 11:06:03 +0100 Subject: Refactor git resign alias --- dot_config/git/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dot_config') diff --git a/dot_config/git/config b/dot_config/git/config index e1857b3..f466c20 100644 --- a/dot_config/git/config +++ b/dot_config/git/config @@ -86,7 +86,7 @@ [absorb] autoStageIfNothingStaged = true [alias] - resign = "!git -c core.hooksPath=/dev/null rebase @{u} --exec 'git log -1 --format=%B | sed \"/^Co-authored-by:/Id\" | git -c core.hooksPath=/dev/null commit --amend --reset-author --no-verify --cleanup=strip -F -'" + resign = "!git show -s --format=%B HEAD | sed \"/^Co-authored-by:/Id\" | git -c core.hooksPath=/dev/null commit --amend --reset-author --no-verify --cleanup=strip -S -F -" ghost-rebase = "!sh -c 'b=$0; u=${1:-origin/master}; wt=$(mktemp -d -t rebwt.XXXXXX); git worktree add -f "$wt" "$b"; git -C "$wt" rebase "$u" || echo "Rebase incomplete"; git worktree remove --force "$wt"'" a = add ab=absorb --and-rebase -- cgit v1.3.1