From 9238d7e3a5fb94b56c26178cd59ec8d9564a0afb Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Sun, 15 Feb 2026 22:36:27 -0500 Subject: [PATCH] wip --- .github/alias.txt | 19 +++++++ .idea/copilot.data.migration.agent.xml | 6 +++ .idea/copilot.data.migration.edit.xml | 6 +++ .vscode/tasks.json | 72 +++++++++++++++----------- 4 files changed, 74 insertions(+), 29 deletions(-) create mode 100644 .github/alias.txt create mode 100644 .idea/copilot.data.migration.agent.xml create mode 100644 .idea/copilot.data.migration.edit.xml diff --git a/.github/alias.txt b/.github/alias.txt new file mode 100644 index 0000000..468b5e9 --- /dev/null +++ b/.github/alias.txt @@ -0,0 +1,19 @@ + +**Powershell +git config --global alias.save-wip "!f() { git add . ; if (git log -1 --format=%s -eq 'wip') { git commit --amend --no-edit } else { git commit -m 'wip' }; git push origin `$(git branch --show-current):wip-sync --force-with-lease; }; f" +git config --global alias.load-wip "!f() { if (git diff-index --quiet HEAD --) { git fetch origin wip-sync; git merge origin/wip-sync; if (git log -1 --format=%s -eq 'wip') { git reset --soft HEAD~1; echo 'WIP Loaded and unwrapped.' } else { echo 'No WIP found. Merge complete.' } } else { echo 'Error: Uncommitted changes detected.'; exit 1 }; }; f" +git config --global alias.abort-wip "git reset --hard HEAD" + +**Git Bash +git config --global alias.save-wip '!f() { git add . ; if [ "$(git log -1 --format=%s)" = "wip" ]; then git commit --amend --no-edit; else git commit -m "wip"; fi; git push origin $(git branch --show-current):wip-sync --force-with-lease; }; f' +git config --global alias.load-wip '!f() { if ! git diff-index --quiet HEAD --; then echo "Error: Uncommitted changes detected."; exit 1; fi; git fetch origin wip-sync && git merge origin/wip-sync && if [ "$(git log -1 --format=%s)" = "wip" ]; then git reset --soft HEAD~1; echo "WIP Loaded and unwrapped."; else echo "No WIP found. Merge complete."; fi; }; f' +git config --global alias.abort-wip 'git reset --hard HEAD' + + +**Mac +git config --global alias.save-wip '!f() { git add . ; if [ "$(git log -1 --format=%s)" = "wip" ]; then git commit --amend --no-edit; else git commit -m "wip"; fi; git push origin $(git branch --show-current):wip-sync --force-with-lease; }; f' +git config --global alias.load-wip '!f() { if ! git diff-index --quiet HEAD --; then echo "Error: Uncommitted changes detected."; exit 1; fi; git fetch origin wip-sync && git merge origin/wip-sync && if [ "$(git log -1 --format=%s)" = "wip" ]; then git reset --soft HEAD~1; echo "WIP Loaded and unwrapped."; else echo "No WIP found. Merge complete."; fi; }; f' +git config --global alias.abort-wip 'git reset --hard HEAD' + +***Reset wip-sync +git push origin --delete wip-sync \ No newline at end of file diff --git a/.idea/copilot.data.migration.agent.xml b/.idea/copilot.data.migration.agent.xml new file mode 100644 index 0000000..4ea72a9 --- /dev/null +++ b/.idea/copilot.data.migration.agent.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/copilot.data.migration.edit.xml b/.idea/copilot.data.migration.edit.xml new file mode 100644 index 0000000..8648f94 --- /dev/null +++ b/.idea/copilot.data.migration.edit.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index dfac589..69d1ef4 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,31 +1,45 @@ { - "version": "2.0.0", - "tasks": [ - { - "label": "Save Work In Progress", - "type": "shell", - "command": "git", - "args": ["savewip"], - "group": "build", - "presentation": { - "echo": true, - "reveal": "silent", - "focus": false, - "panel": "shared" - } - }, - { - "label": "Load Work In Progress", - "type": "shell", - "command": "git", - "args": ["loadwip"], - "group": "build", - "presentation": { - "echo": true, - "reveal": "silent", - "focus": false, - "panel": "shared" - } - } - ] + "version": "2.0.0", + "tasks": [ + { + "label": "Git: Save WIP", + "type": "shell", + "command": "git save-wip", + "group": "build", + "presentation": { + "reveal": "always", + "panel": "shared" + } + }, + { + "label": "Git: Load WIP", + "type": "shell", + "command": "git load-wip", + "group": "build", + "presentation": { + "reveal": "always", + "panel": "shared" + } + }, + { + "label": "Git: Reset Cloud WIP", + "type": "shell", + "command": "git push origin --delete wip-sync", + "presentation": { + "reveal": "always", + "panel": "shared" + } + }, + { + "label": "Git: Abort WIP (Reset Local)", + "type": "shell", + "command": "git abort-wip", + "group": "none", + "presentation": { + "reveal": "always", + "panel": "shared", + "echo": true + } + } + ] } \ No newline at end of file