summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKipras Melnikovas <kipras@kipras.org>2024-02-10 17:49:29 +0200
committerKipras Melnikovas <kipras@kipras.org>2024-02-23 03:51:27 +0200
commit399c747b106ce26d7f88c319d95748cf7dd553b6 (patch)
treec2b19681a55f640bb9a1e31ad1600848e87a82a8
parent4c30f100188f96046cbe7a514823a8ca97ed7a52 (diff)
rebase: add `--autostash` arg to perform rebase even if uncommitted changes left
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d54d0c7..fe9e3e6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -321,7 +321,7 @@ fn run_with_repo(config: &Config, repo: &git2::Repository) -> Result<()> {
assert!(number_of_parents <= 1);
let mut command = Command::new("git");
- command.args(&["rebase", "--interactive", "--autosquash"]);
+ command.args(&["rebase", "--interactive", "--autosquash", "--autostash"]);
if number_of_parents == 0 {
command.arg("--root");