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

Add orphan option in checkout #37

Closed
itoed opened this issue Oct 3, 2014 · 3 comments
Closed

Add orphan option in checkout #37

itoed opened this issue Oct 3, 2014 · 3 comments

Comments

@itoed
Copy link
Contributor

itoed commented Oct 3, 2014

I would like to perform a git checkout --orphan <new_branch> from a Gradle build script. Would this be feasible to implement?

Thanks for grgit!

@ajoberstar
Copy link
Owner

I looked into this just recently. I don't think JGit provides a true orphan checkout. Though I saw some other ways on StackOverflow that could get the same functionality using clean. I'll add it to the wishlist.

If you come up with a way to do this before I get to it, feel free to contribute a pull request.

@ajoberstar ajoberstar added this to the wishlist milestone Oct 3, 2014
@itoed
Copy link
Contributor Author

itoed commented Oct 3, 2014

Please let me know if this issue needs more work and I'll do what I can. Thank you!

@ajoberstar
Copy link
Owner

Turns out I had a link to an old version of their API. Thanks for taking care of this!

@ajoberstar ajoberstar removed this from the wishlist milestone Oct 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants