Skip to content

Add options argument to GTRepository cloneFromURL #252

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

Merged
merged 4 commits into from
Sep 15, 2013

Conversation

isaac
Copy link
Contributor

@isaac isaac commented Sep 7, 2013

No description provided.

// withCheckout - if NO, don't checkout the remote HEAD
// options - A NSDictionary with NSString keys, used for specifying clone options. Possible keys are @"bare" and @"transportFlags"
// error - A pointer to fill in case of trouble.
// transferProgressBlock - This block is called with network transfer updates.
Copy link
Contributor

Choose a reason for hiding this comment

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

Doc update needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, if you could document the magic options keys, that would be wonderful !

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tiennou - could you please elaborate on what kind of doc update is needed?

Copy link
Contributor

Choose a reason for hiding this comment

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

My bad, since you mentioned moving one of the blocks in the options dict, seeing it here made me think the doc wasn't updated. ATM it just misses a list of the options keys and what they do.

@ghost ghost assigned tiennou Sep 9, 2013
@tiennou tiennou mentioned this pull request Sep 10, 2013
@isaac
Copy link
Contributor Author

isaac commented Sep 13, 2013

@jspahrsummers @tiennou - I think this PR is ready to merge now. I don't think we need to wait for #254 - we can open a new PR when #254 is ready or integrate the GTCredential changes for cloning directly into #254 - what do you guys think?

@tiennou
Copy link
Contributor

tiennou commented Sep 14, 2013

I'm fine with that, thanks for your work @isaac ;-).

// options - A NSDictionary with NSString keys, used for specifying clone options. Possible keys are:
// - @"bare" - BOOL value, if YES, create a bare clone, for example: [NSNumber numberWithBool:YES], defaults to NO
// - @"checkout" - BOOL value, if NO, don't checkout the remote HEAD, for example: [NSNumber numberWithBool:NO], defaults to YES
// - @"transportFlags" - int value, two possible values:
Copy link
Contributor

Choose a reason for hiding this comment

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

These keys should be file constants, and the documentation for them should appear on those constants.

@jspahrsummers
Copy link
Contributor

🍫

@isaac
Copy link
Contributor Author

isaac commented Sep 15, 2013

@jspahrsummers
Copy link
Contributor

👍 I'll let @tiennou handle the final review and merge.

@tiennou
Copy link
Contributor

tiennou commented Sep 15, 2013

I'm honored ;-). Looks good to me, so I'll just merge. I'll add the GTCredential stuff after that. Thanks again for the work, @isaac ;-).

Related: It seems libgit2 is adding init options to its clone method, but this can wait until someone has an use for it.

tiennou added a commit that referenced this pull request Sep 15, 2013
Add options argument to GTRepository cloneFromURL
@tiennou tiennou merged commit 460d576 into libgit2:master Sep 15, 2013
phatblat pushed a commit to phatblat/objective-git that referenced this pull request Sep 13, 2014
Add options argument to GTRepository cloneFromURL
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.

3 participants