Skip to content

Commit

Permalink
creating new wc commit when @ becomes immuable
Browse files Browse the repository at this point in the history
  • Loading branch information
tdaron committed May 1, 2024
1 parent e54e83b commit 283a587
Show file tree
Hide file tree
Showing 2 changed files with 332 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cli/src/cli_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,13 @@ See https://github.com/martinvonz/jj/blob/main/docs/working-copy.md#stale-workin
// update it.
}
}

let current_wc = self.repo().view().wc_commit_ids().get(self.workspace_id());
if let Some(wc) = current_wc {
if self.check_rewritable([wc]).is_err() {
// Here i should create a new commit.
}
}
let settings = &self.settings;
if settings.user_name().is_empty() || settings.user_email().is_empty() {
writeln!(
Expand Down
Loading

0 comments on commit 283a587

Please sign in to comment.