Skip to content

Commit

Permalink
fix: always markThatNeedsToApply, until proven otherwise (TBD)
Browse files Browse the repository at this point in the history
Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
  • Loading branch information
kiprasmel committed Apr 10, 2022
1 parent f896d1c commit 97b91c7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions git-stacked-rebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,11 @@ mv -f "${preparedRegularRebaseTodoFile}" "${pathToRegularRebaseTodoFile}"
);
console.log("big buns - the proper rebase returned");

/**
* will need to apply, unless proven otherwise
*/
markThatNeedsToApply();

/**
* part 2 of "the different ways to launch git rebase"
*/
Expand Down Expand Up @@ -775,8 +780,11 @@ mv -f "${preparedRegularRebaseTodoFile}" "${pathToRegularRebaseTodoFile}"
});
console.log("");

if (rebaseChangedLocalHistory) {
markThatNeedsToApply();
if (!rebaseChangedLocalHistory) {
/**
* TODO `unmarkThatNeedsToApply` (NOT the same as `markThatApplied`!)
*/
// unmarkThatNeedsToApply();
}

/**
Expand Down

0 comments on commit 97b91c7

Please sign in to comment.