From ee0e681fb40dcf53aaf5fe6faf78d840c9c5eea1 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Sat, 8 Nov 2025 16:35:41 +0200 Subject: [PATCH 1/3] Align the comment with the actual configuration --- .config/sway/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/sway/config b/.config/sway/config index e43e5e7..1054a60 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -9,7 +9,7 @@ # Logo key. Use Mod1 for Alt. set $wm_mod Mod4+Control set $launch Mod4+Alt -# Home row direction keys, like vim +# WASD direction keys, video game style set $left a set $down s set $up w From 665cbeaec3aca749dda750efde6858d4e4cae3b1 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Sat, 8 Nov 2025 16:40:52 +0200 Subject: [PATCH 2/3] Keep the git aliases sorted --- .gitconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitconfig b/.gitconfig index e0d1e54..37525ac 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,12 +1,14 @@ [init] defaultBranch = trunk [alias] - co = checkout + # keep-sorted start br = branch ci = commit - st = status - sign = commit --amend --no-edit --gpg-sign + co = checkout resign = !git-resign + sign = commit --amend --no-edit --gpg-sign + st = status + # keep-sorted end [remote] pushDefault = . [git-sync] From f303e2b05eff1274ebe1978db49feb65f22221bb Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Sat, 8 Nov 2025 16:40:27 +0200 Subject: [PATCH 3/3] Write a script for resetting commit author metadata --- .gitconfig | 1 + .local/bin/git-disclaim | 5 +++++ 2 files changed, 6 insertions(+) create mode 100755 .local/bin/git-disclaim diff --git a/.gitconfig b/.gitconfig index 37525ac..d269033 100644 --- a/.gitconfig +++ b/.gitconfig @@ -5,6 +5,7 @@ br = branch ci = commit co = checkout + disclaim = !git-disclaim resign = !git-resign sign = commit --amend --no-edit --gpg-sign st = status diff --git a/.local/bin/git-disclaim b/.local/bin/git-disclaim new file mode 100755 index 0000000..79ee234 --- /dev/null +++ b/.local/bin/git-disclaim @@ -0,0 +1,5 @@ +#!/bin/sh + +author_name="$(git show --no-patch --format='%an' HEAD)" +author_email="$(git show --no-patch --format='%ae' HEAD)" +GIT_AUTHOR_NAME="${author_name}" GIT_AUTHOR_EMAIL="${author_email}" GIT_COMMITTER_NAME="${author_name}" GIT_COMMITTER_EMAIL="${author_email}" git commit --amend --author "${author_name} <${author_email}>" --no-edit --no-verify