Skip to content

Conversation

@PrayagS
Copy link
Contributor

@PrayagS PrayagS commented Jan 12, 2026

Upstream commit: jj-vcs/jj@242e2f8

Release notes: https://github.com/jj-vcs/jj/blob/fa7df5edb3f89ce32a03165527878de9df4bd0a4/CHANGELOG.md?plain=1#L97-L98

The diff conflict marker style can now use \\\\\\\ markers to indicate
the continuation of a conflict label from the previous line.

This commit updates the script to move the diff's start point by one
line if this marker is seen.

Tests,

❯ MINI_NVIM_PATH=/Users/prayagmatic/dev/mini.nvim make test                                                                                                                  ─╯
Total number of cases: 27
Total number of groups: 2

tests/test_internal.lua: oooooooooooooooo
tests/test_jj_diffconflicts.lua: ooooooooooo

Fails (0) and Notes (0)

Resolves #13

Signed-off-by: PrayagS prayagsavsani@gmail.com

@PrayagS
Copy link
Contributor Author

PrayagS commented Jan 12, 2026

Let me know if you want to update/add new test cases as part of this change.

Upstream commit: jj-vcs/jj@242e2f8

Release notes: https://github.com/jj-vcs/jj/blob/fa7df5edb3f89ce32a03165527878de9df4bd0a4/CHANGELOG.md?plain=1#L97-L98

> The `diff` conflict marker style can now use `\\\\\\\` markers to indicate
> the continuation of a conflict label from the previous line.

This commit updates the script to move the diff's start point by one
line if this marker is seen.

Tests,
```
❯ MINI_NVIM_PATH=/Users/prayagmatic/dev/mini.nvim make test                                                                                                                  ─╯
Total number of cases: 27
Total number of groups: 2

tests/test_internal.lua: oooooooooooooooo
tests/test_jj_diffconflicts.lua: ooooooooooo

Fails (0) and Notes (0)
```

Resolves rafikdraoui#13

Signed-off-by: PrayagS <prayagsavsani@gmail.com>
@PrayagS PrayagS force-pushed the fix-for-jj-v0_37_0 branch from 9d91b85 to af5b345 Compare January 12, 2026 20:35
@rafikdraoui
Copy link
Owner

Thanks for the PR! I pushed an additional commit that adds a test case for handling the new-style markers.

I'll probably merge it this weekend when I get some free time.

@rafikdraoui rafikdraoui merged commit 6d9eeda into rafikdraoui:main Jan 18, 2026
@PrayagS PrayagS deleted the fix-for-jj-v0_37_0 branch January 18, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conflict parsing is broken since jj v0.37.0

2 participants