documentation: improve docs for `checkout_head` by ethomson · Pull Request #3822 · libgit2/libgit2 · GitHub
Skip to content

documentation: improve docs for checkout_head#3822

Merged
carlosmn merged 1 commit into
masterfrom
ethomson/checkout_head_docs
Jun 16, 2016
Merged

documentation: improve docs for checkout_head#3822
carlosmn merged 1 commit into
masterfrom
ethomson/checkout_head_docs

Conversation

@ethomson

Copy link
Copy Markdown
Member

git_checkout_head is sadly misunderstood as something that can
switch branches. It cannot. Update the documentation to reflect this.

Fixes #2864

Comment thread include/git2/checkout.h Outdated

@carlosmn carlosmn Jun 14, 2016

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we mention git_repository_set_head() here, as that's the convenient way we offer to switch the active branch?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Updated to mention git_repository_set_head.

`git_checkout_head` is sadly misunderstood as something that can
switch branches.  It cannot.  Update the documentation to reflect this.
@ethomson ethomson force-pushed the ethomson/checkout_head_docs branch from 54e8df8 to b926648 Compare June 15, 2016 20:24
@carlosmn carlosmn merged commit 3e9830d into master Jun 16, 2016
@ethomson ethomson deleted the ethomson/checkout_head_docs branch January 13, 2017 12: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.

2 participants