Skip to content

Conversation

mdiep
Copy link
Contributor

@mdiep mdiep commented Mar 15, 2015

Fixes #29.

Remaining tasks:

  • Add strategy parameter
  • Add progress callbacks
  • Test Repository.checkout()?

@mdiep mdiep changed the title [WIP] Checkout Checkout Apr 14, 2015
@mdiep
Copy link
Contributor Author

mdiep commented Apr 14, 2015

This is ready for review.


/// A C function for working with Libgit2. This shouldn't be called directly. It's an
/// implementation detail that, unfortunately, leaks through to the public headers.
extern git_checkout_options SG2CheckoutOptions(SG2CheckoutProgressBlock __nullable progress);
Copy link
Member

Choose a reason for hiding this comment

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

Ah, too bad this hasn't been fixed yet. Nice workaround!

@modocache
Copy link
Member

I had a suggestion for the test case, but other than that looks great! 👍

modocache added a commit that referenced this pull request Apr 14, 2015
@modocache modocache merged commit 1d491b5 into master Apr 14, 2015
@modocache modocache deleted the checkout branch April 14, 2015 03:29
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.

API to checkout a commit or reference
2 participants