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 docs for git oid methods #23460

Merged
merged 1 commit into from
Aug 27, 2017
Merged

Add docs for git oid methods #23460

merged 1 commit into from
Aug 27, 2017

Conversation

ararslan
Copy link
Member

No description provided.

@ararslan ararslan added docs This change adds or pertains to documentation libgit2 The libgit2 library or the LibGit2 stdlib module labels Aug 26, 2017
@ararslan ararslan requested a review from kshyatt August 26, 2017 01:53
"""
raw(id::GitHash) -> Vector{UInt8}

Obtain the raw bytes of the [`GitHash`](@ref) as a vector of length $OID_RAWSZ.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this have backticks around OID_RAWSZ?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, it's intended to interpolate into the docstring, since AFAICT OID_RAWSZ isn't intended to be user-facing. We do this in a few other places in this file as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

GitHash(ptr::Ptr{UInt8})

Construct a `GitHash` from a pointer to `UInt8` data containing the bytes of the
SHA-1 hash.
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to mention what happens if you pass a NULL ptr?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea, thanks!

@ararslan
Copy link
Member Author

ararslan commented Aug 26, 2017

Docs built locally and they look good, plus CI passed on Circle and FreeBSD (AppVeyor failures unrelated) on the previous commit, so I skipped CI for the most recent commit.

Whoever merges this, please squash merge and remove the [ci skip] bit from the commit message.

@kshyatt
Copy link
Contributor

kshyatt commented Aug 27, 2017

Do you want to resolve the conflict? Sorry, I think that was my fault :/

@ararslan
Copy link
Member Author

Yep, will do. Thanks!

@ararslan ararslan merged commit 9f00d84 into master Aug 27, 2017
@ararslan ararslan deleted the aa/oid-docs branch August 27, 2017 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation libgit2 The libgit2 library or the LibGit2 stdlib module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants