-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add docs for git oid methods #23460
Conversation
""" | ||
raw(id::GitHash) -> Vector{UInt8} | ||
|
||
Obtain the raw bytes of the [`GitHash`](@ref) as a vector of length $OID_RAWSZ. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
base/libgit2/oid.jl
Outdated
GitHash(ptr::Ptr{UInt8}) | ||
|
||
Construct a `GitHash` from a pointer to `UInt8` data containing the bytes of the | ||
SHA-1 hash. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, thanks!
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. |
Do you want to resolve the conflict? Sorry, I think that was my fault :/ |
Yep, will do. Thanks! |
[ci skip]
No description provided.