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

WIP: Add git checkout <pathspec>... #457

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

Conversation

AtkinsSJ
Copy link
Collaborator

@AtkinsSJ AtkinsSJ commented Jun 5, 2024

Putting this here just so it's accessible. This is an offshoot of #418; only the last commit is new. It attempts to add git checkout for individual files, but runs into a few bugs that I couldn't track down. More details in that commit message.

Create, delete, copy, rename, and list branches.
Sporadically we hang while trying to fetch. I haven't been able to
identify why but it seems like a race condition in isomorphic-git
somewhere.
For now this only lets you check out branches, not files.
As far as I can tell, this is all correct, but I'm seeing really odd
results:
- Staging area gets overwritten as well. See
  isomorphic-git/isomorphic-git#1741
- We report that the working directory is clean after, even though a
  file is now different than in HEAD. Possibly related to this?
  isomorphic-git/isomorphic-git#608

Some of this could be bugs in `git status`, I don't know. But it's very
odd nonetheless so I'll leave it unmerged for now.
@AtkinsSJ AtkinsSJ marked this pull request as draft June 5, 2024 12:01
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