From fc06ecda709c27a4dab4b67bfb7b593bc47d9d0c Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Wed, 4 Jun 2025 22:44:24 +0300 Subject: [PATCH] Write a script for mass signing commits --- .gitconfig | 1 + .local/bin/git-resign | 8 ++++++++ .profile | 2 ++ 3 files changed, 11 insertions(+) create mode 100755 .local/bin/git-resign diff --git a/.gitconfig b/.gitconfig index 1f7ee01..609a4b9 100644 --- a/.gitconfig +++ b/.gitconfig @@ -4,5 +4,6 @@ ci = commit st = status sign = commit --amend --no-edit --gpg-sign + resign = !git-resign [include] path = .hostgitconfig diff --git a/.local/bin/git-resign b/.local/bin/git-resign new file mode 100755 index 0000000..6dc0661 --- /dev/null +++ b/.local/bin/git-resign @@ -0,0 +1,8 @@ +#! /usr/bin/sh + +rebase_marker="$(git rev-parse --show-toplevel)/.git/rebase-merge/done" +while [ -f ${rebase_marker} ] +do + git sign + git rebase --continue +done diff --git a/.profile b/.profile index cc8c053..1bde17f 100644 --- a/.profile +++ b/.profile @@ -30,3 +30,5 @@ umask 0007 export GTK_IM_MODULE="ibus" export QT_IM_MODULE="ibus" export XMODIFIERS="@im=ibus" + +export PATH=/home/ohad/.local/bin:${PATH}