Skip to content

introduce work tree APIs and tests to support better conflict detection - #7822

Closed
shiftkey wants to merge 6 commits into
shiftkey/conflicts/introduce-abstractionfrom
shiftkey/conflicts/work-tree-apis
Closed

shiftkey wants to merge 6 commits into
shiftkey/conflicts/introduce-abstractionfrom
shiftkey/conflicts/work-tree-apis

Conversation

@shiftkey

Copy link
Copy Markdown
Member

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 repository
  • cleanupTemporaryWorkTrees - once complete, tidy up any worktrees created for use in Desktop

The 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

@shiftkey

Copy link
Copy Markdown
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.

@shiftkey shiftkey closed this Jun 28, 2019
@shiftkey
shiftkey deleted the shiftkey/conflicts/work-tree-apis branch July 22, 2019 16:38
@outofambit outofambit mentioned this pull request Jul 23, 2019
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.

1 participant