merge: add two missing AnnotatedCommit methods #423

Merged
josharian merged 3 commits from more-annotated-commit into master 2020-02-23 09:05:26 -06:00
josharian commented 2018-01-25 18:02:26 -06:00 (Migrated from github.com)

These should be reviewed somewhat skeptically; the implementation was pulled in monkey-see-monkey-do from similar calls.

These should be reviewed somewhat skeptically; the implementation was pulled in monkey-see-monkey-do from similar calls.
carlosmn (Migrated from github.com) reviewed 2018-03-11 14:23:18 -05:00
carlosmn (Migrated from github.com) commented 2018-03-11 14:23:18 -05:00

The runtime.KeepAlive() call needs to come after our last reference to what we need to keep alive. The annotated commit goes into newAnnotatedCommitFromC and we need to make sure r stays alive until we return from this function.

The `runtime.KeepAlive()` call needs to come after our last reference to what we need to keep alive. The annotated commit goes into `newAnnotatedCommitFromC` and we need to make sure `r` stays alive until we return from this function.
lhchavez (Migrated from github.com) reviewed 2020-02-23 08:59:25 -06:00
lhchavez (Migrated from github.com) commented 2020-02-23 08:59:25 -06:00

Fixed this and all other methods that have the same issue.

Fixed this and all other methods that have the same issue.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jcarr/git2go#423
No description provided.