-
Notifications
You must be signed in to change notification settings - Fork 280
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
Extending checkout support #457
Comments
Note that I'm throwing that out to see if you guys already have some plans on how to do that. What I would do is add a So, for example, our checkout support would change to :
or you could customize them before handing those to whatever you're trying to do :
(obviously this last example is completely made up, because I don't think we're that far in handling merges yet). |
Eeek. I don't think it's even sensible to ask for a merge with paths. Let's hope the point gets through anyway 😄. |
Sounds reasonable. We don't use libgit2 checkout ourselves, so I don't feel qualified to comment on the use of its API. |
I've taken a quick peek at where the upcoming stash support is, and noticed there are a few differences with what I had wrote. It now requires a
git_checkout_options
structure, and I noticed we're woefully under-equipped when it comes to that.Right now we only support progress & notify callbacks, as well as strategy and notification "flags", but no "paths", and no "labels" (which I think are used for conflicts). And since this structure gets used by cherrypick, merge, reset, revert, stash and submodule, maybe it would be nicer to work on DRYing up those measly 4 parameters we have at the moment before it gets out of hand ;-).
The text was updated successfully, but these errors were encountered: