summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Jung <tummychow511@gmail.com>2024-02-22 21:19:01 -0500
committerGitHub <noreply@github.com>2024-02-22 21:19:01 -0500
commit656261484570534ac4ce8d373bfea8c32b8910d1 (patch)
treec2b19681a55f640bb9a1e31ad1600848e87a82a8
parent4c30f100188f96046cbe7a514823a8ca97ed7a52 (diff)
parent399c747b106ce26d7f88c319d95748cf7dd553b6 (diff)
Merge pull request #100 from kiprasmel/rebase-autostash
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");