Add support for parsing git trailers #614
Loading…
Reference in New Issue
No description provided.
Delete Branch "trailers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a wrapper for git_message_trailers which returns a slice of trailer
structs.
First pull request for git2go & first use of cgo, criticism welcomed, thanks!
nice! just a few minor requests.
minor nit:
(if this was copied from another file, let me know which one and we'll fix that later).
maybe
for a tiny bit more symmetry between the initialization and post-steps.
@ -0,0 +18,4 @@
// MessageTrailers parses trailers out of a message, returning a slice of
// Trailer structs. Trailers are key/value pairs in the last paragraph of a
// message, not including any patches or conflicts that may be present.
func MessageTrailers(message string) ([]Trailer, error) {
Can the docstrings from libgit2 be copied (+adapted) as the golang docstrings? For example, this could be
Same for
Trailer
above in L12 (from849f371ea8/include/git2/message.h (L41)
)@lhchavez thanks for your detailed review, I believe I addressed all of you feedback, but please let me know if there is anything I missed!
it's all good! thanks for doing this!