diff options
| author | 2026-06-05 11:06:03 +0100 | |
|---|---|---|
| committer | 2026-06-05 11:06:03 +0100 | |
| commit | 44ef6219949675c6ab46b230a7f87fb8f6c9665f (patch) | |
| tree | ed484a626e45100d7b25415b20c8f7d58463c09c /dot_config/git/config | |
| parent | ddb31f2e965fb71ab949a54043c82f958b818442 (diff) | |
| download | dotfiles-44ef6219949675c6ab46b230a7f87fb8f6c9665f.tar.gz dotfiles-44ef6219949675c6ab46b230a7f87fb8f6c9665f.tar.bz2 dotfiles-44ef6219949675c6ab46b230a7f87fb8f6c9665f.zip | |
Refactor git resign alias
Diffstat (limited to 'dot_config/git/config')
| -rw-r--r-- | dot_config/git/config | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
