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

reset changes for merge #1013

Merged
merged 2 commits into from
Oct 25, 2012
Merged

reset changes for merge #1013

merged 2 commits into from
Oct 25, 2012

Conversation

ethomson
Copy link
Member

@@ -88,6 +90,11 @@ int git_reset(
goto cleanup;
}

if (reset_type == GIT_RESET_SOFT && (git_repository_state(repo) == GIT_REPOSITORY_STATE_MERGE)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about introducing a new GIT_EUNMERGED error code and return it here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep.

On Oct 23, 2012, at 4:02 PM, nulltoken notifications@github.com wrote:

In src/reset.c:

@@ -88,6 +90,11 @@ int git_reset(
goto cleanup;
}

  • if (reset_type == GIT_RESET_SOFT && (git_repository_state(repo) == GIT_REPOSITORY_STATE_MERGE)) {
    How about introducing a new GIT_EUNMERGED error code and return it here?


Reply to this email directly or view it on GitHub.

@dahlbyk
Copy link
Member

dahlbyk commented Oct 24, 2012

So far so good... would it make sense to add the other states (rebase, am, bisect) now too?

Thoughts on how to expose the "interactive head" during a rebase? libgit2/libgit2sharp#128 (comment)

@ethomson
Copy link
Member Author

Rebased on development. @vmg, is this ready for merge or are there additional changes?

@vmg
Copy link
Member

vmg commented Oct 25, 2012

Looks great. One of the travis builds has stalled but the other are clean.

vmg pushed a commit that referenced this pull request Oct 25, 2012
@vmg vmg merged commit 5edb846 into libgit2:development Oct 25, 2012
phatblat pushed a commit to phatblat/libgit2 that referenced this pull request Sep 13, 2014
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.

4 participants