-
Notifications
You must be signed in to change notification settings - Fork 832
templates: Expose conflicted files in the template language #8183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
63dc14a to
f65bf08
Compare
93e1a64 to
2662450
Compare
2662450 to
c261ca9
Compare
| }, | ||
| ); | ||
| map.insert( | ||
| "num_conflict_sides", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I slightly prefer conflict_sides or conflict_side_count, but I don't feel strongly.
Another idea is to add added/removed_entries() -> List<TreeEntry>.
|
|
||
| // Merge with conflicts. | ||
| work_dir | ||
| .run_jj(["new", "description(left)", "description(right)"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: use subject(glob:left) (it's equivalent to exact:left, but I'll remove glob: when it becomes the default.)
| let output = work_dir.run_jj([ | ||
| "log", | ||
| "-r", | ||
| "description(substring:\"left\")", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: same here. subject(glob:left)
Will allow things like showing info about conflicted files in the log.
Should synergize well with #8184
Fixes: #7377
Checklist
If applicable:
CHANGELOG.mdREADME.md,docs/,demos/)cli/src/config-schema.json)