Skip to content
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

Fix a few issues with invoking the builtin diff editor #4078

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

30350n
Copy link

@30350n 30350n commented Jul 12, 2024

Proof of Concept to fix #3702 and #3846.

Relies on scm-record #62.

This is pretty ugly, especially the unreachable!() stuff, but it seems to mostly work fine. Fixing this properly would require rewriting large parts of scm-record.

Checklist

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

Copy link

google-cla bot commented Jul 12, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@30350n 30350n changed the title Fix apply diff builtin Fix various issues with jj split Jul 12, 2024
@30350n 30350n force-pushed the fix-apply-diff-builtin branch from 1af148f to 9fc6741 Compare July 15, 2024 01:10
@ilyagr
Copy link
Contributor

ilyagr commented Jul 15, 2024

Re title: perhaps call this "Fix a few issues with invoking the builtin diff editor"?

[Update: I realized I can just adjust the title myself. I hope you don't mind if I do. In any case, feel free to revert the change if I misunderstood something and feel free change the title in other ways that seem good to you.]

Also, I have not reviewed the implementation of this or arxanas/scm-record#62 at all, but thank you for looking into this!

@martinvonz
Copy link
Member

I'm not sure if you plan on making this a non-draft PR. If you do, see https://martinvonz.github.io/jj/latest/contributing/#code-reviews.

@ilyagr ilyagr changed the title Fix various issues with jj split Fix a few issues with invoking the builtin diff editor Jul 15, 2024
@martinvonz
Copy link
Member

Just a reminder that you will have this draft PR. I know many users are waiting for it to get merged.

@arxanas
Copy link
Contributor

arxanas commented Oct 6, 2024

Just a reminder that you will have this draft PR. I know many users are waiting for it to get merged.

"will" -> "still"?

@30350n
Copy link
Author

30350n commented Oct 8, 2024

Just a reminder that you will have this draft PR. I know many users are waiting for it to get merged.

Yeah, I'd also be happy to get this resolved, but I most likely won't be able to find time to give this a once over this year anymore.

I see this as a POC, to properly resolved this larger changes to scm-record are required (see scm-record #62). So if someone else wants to tackle this, feel free to build on top of this ^^

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.

file deletion ignored by jj split (when using the built-in diff editor)
4 participants