Repository navigation
Conversation
Member
Author
|
Closing this out for now because I'm no longer working on this feature. @outofambit I'm going to leave the branch up in case you want to reuse the commits. |
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
🌵🌵🌵builds upon #7819, please review that first 🌵🌵🌵
Related to #7445
Description
This PR adds scaffolding to manage temporary worktrees from in the app. The goal here is to support being able to properly detect merge/rebase conflicts, without touching the user's working directory.
We can do this with the work in this PR using these functions exported from
findOrCreateTemporaryWorkTree- create or use an existing temporary worktree associated with a repositorycleanupTemporaryWorkTrees- once complete, tidy up any worktrees created for use in DesktopThe API is subject to change, but it helped me get something going quickly to support rebase conflict detection in #7445 so I think it's on the right track at least.
I also added a bunch of tests of this plumbing to ensure that it works as expected on macOS/Windows/Linux.
Release notes
Notes: no-notes