Commit 8d321144 authored by Wayne Davison's avatar Wayne Davison

If we start a sub-shell to let the user fix a rebase, output a

message and change the prompt.
parent 805d8ac4
......@@ -67,7 +67,11 @@ foreach my $patch (@patches) {
close IN;
print OUT "\n";
system "git-rebase -m $parent || $ENV{SHELL}";
if (system("git-rebase -m $parent") != 0) {
print qq|"git-rebase -m $parent" incomplete -- please fix.\n|;
$ENV{PS1} = "[$parent] patch/$patch: ";
system $ENV{SHELL};
}
open(PIPE, '-|', 'git-diff', 'master') or die $!;
while (<PIPE>) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment