Skip to content

Checkout removes ignored directories - WIP #254

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

Closed
wants to merge 4 commits into from

Conversation

jamill
Copy link
Member

@jamill jamill commented Nov 26, 2012

This PR (based off of @nulltoken's updated LibGit2Sharp PR), includes a test showing that checkout removes ignored directories. This PR is just to demonstrate the issue, I will clean up test before it is ready to be merged.

The last commit contains the actual failing test (the other commits are the proposed updates to LibGit2Sharp)

/cc @arrbee

This implements git clean and exposes the ability to remove untracked files from the working directory.
If / when git clean functionality is exposed directly by libgit2, we can update this to use that entry point.
Currently, we call git_checkout_index with a flags indicating that untracked entries should be removed. This does
not support other flags exposed by core Git, such as removing ignored files.
Checkout tests were originally written under the assumption that git
reset would remove untracked files (reset, as implemented in LibGit2Sharp,
originally mistakenly removed untracked files). This updates the tests
to reset and clean the working directory.
libgit2/libgit2@1e99ce9...54be4d5

Conflicts:
	LibGit2Sharp/Core/NativeMethods.cs
@nulltoken
Copy link
Member

@jamill Some of those commits have been merged as part of #260

What should we do with 8aaeee1?

  • If it's still failing, could you please rebase this PR on top of vNext?
  • If the behavior has been fixed in libgit2, maybe would it be worth adding it to Checkout update #292.

@jamill
Copy link
Member Author

jamill commented Jan 11, 2013

Closing this as tests have been added to #292.

@jamill jamill closed this Jan 11, 2013
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.

2 participants