Skip to content

Libgit2 update - WIP #259

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 6 commits into from
Closed

Libgit2 update - WIP #259

wants to merge 6 commits into from

Conversation

jamill
Copy link
Member

@jamill jamill commented Nov 28, 2012

Update to bring libgit2 binaries forward in LibGit2Sharp. There is still one failing test (HardResetUpdatesTheContentOfTheWorkingDirectory) - but we will need libgit2 updates to fix this properly.

Most of the content of this PR comes from @nulltoken, which I brought into this commit.

@ben - We can use this to fix (most) of the issues when doing the reaction work in response to the "The Great Renaming".

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.
@jamill
Copy link
Member Author

jamill commented Dec 4, 2012

All the work is being done on #260 now - closing this PR.

@jamill jamill closed this Dec 4, 2012
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