From 7e27ed016ca66b90eaddea6b9a85cefa1f179e70 Mon Sep 17 00:00:00 2001 From: iff Date: Sat, 11 Jan 2025 16:50:13 +0100 Subject: [PATCH] rules(git): autostash --- rules/git.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rules/git.toml b/rules/git.toml index d44887e..bf92fda 100644 --- a/rules/git.toml +++ b/rules/git.toml @@ -134,6 +134,9 @@ pattern = [ ] suggest = [ ''' +#[cmd_contains(pull)] +{{command}} --rebase --autostash ''', +''' git stash && \ {{command}} && \ git stash pop '''