From f4ff3ad3027dc23cfeacb889e1d932103e951787 Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Tue, 18 Mar 2025 14:53:13 -0500 Subject: [PATCH] add gintent undo command --- common/general/shell/common.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common/general/shell/common.sh b/common/general/shell/common.sh index 4287c4d..8b8d9c7 100644 --- a/common/general/shell/common.sh +++ b/common/general/shell/common.sh @@ -169,6 +169,18 @@ gintent() { } alias gintentnix="gintent .envrc flake.lock flake.nix" +gintent_undo() { + for file in "$@"; do + if [ -f "$file" ]; then + git update-index --no-assume-unchanged "$file" + echo "Intent removed for $file" + else + echo "File not found: $file" + fi + done +} +alias gintentnix_undo="gintent_undo .envrc flake.lock flake.nix" + # Aider aider () {