-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak the behavior of
jj prev
when @
is a non-discardable tip
Before this change, `jj prev` does this: ``` jj log -T 'separate(" ",change_id.short(), description)' @ umspkqwnpqvx add file2 ◉ nprzlkrnkpuu add file1 ◉ zzzzzzzzzzzz jj prev Working copy now at: otzuvlqz 21a57e68 (empty) (no description set) Parent commit : zzzzzzzz 00000000 (empty) (no description set) Added 0 files, modified 0 files, removed 2 files jj log -T 'separate(" ",change_id.short(),description)' @ otzuvlqzsrxt │ ◉ umspkqwnpqvx add file2 │ ◉ nprzlkrnkpuu add file1 ├─╯ ◉ zzzzzzzzzzzz ``` After, it does this: ``` jj log -T 'separate(" ",change_id.short(), description)' @ okxltnqrlpsr │ ◉ umspkqwnpqvx add file2 ├─╯ ◉ nprzlkrnkpuu add file1 ◉ zzzzzzzzzzzz ``` There is more discussion about this change in #3426. This commit also allows `jj prev` to run when `@` is a merge commit. Previously it refused to do this.
- Loading branch information
1 parent
005f803
commit 4b64c39
Showing
2 changed files
with
49 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters