From 58f48ac38567b956dcec08cc5dfb23d313f7e1df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Lundeg=C3=A5rd=20Kylander?= Date: Sat, 11 Jul 2026 22:20:06 +0200 Subject: [PATCH] Add custom command to Fork that copies commit to upstream without disturbing current working tree --- .fork/custom-commands.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .fork/custom-commands.json diff --git a/.fork/custom-commands.json b/.fork/custom-commands.json new file mode 100644 index 0000000..de517a2 --- /dev/null +++ b/.fork/custom-commands.json @@ -0,0 +1,15 @@ +[ + { + "version" : 2 + }, + { + "action" : { + "script" : "git worktree add .temp-worktree upstream/main\ncd .temp-worktree\ngit cherry-pick ${sha}\ngit push upstream HEAD:main\ncd ..\ngit worktree remove .temp-worktree", + "showOutput" : false, + "type" : "sh", + "waitForExit" : true + }, + "name" : "Cherry-pick and push to upstream", + "target" : "revision" + } +] \ No newline at end of file