Conversation
Wrapper for git_diff_index_to_index to create diffs from two in-memory indeces.
(Essentially a wrapper around git_merge_commits())
ObjectiveGit/GTCommit.h
Outdated
There was a problem hiding this comment.
Don't GTCommit and NSError need nullability annotation?
There was a problem hiding this comment.
git_merge_commits() requires second commit to exist, so no.
As for NSError nullability, I've followed the syntax in -[GTTree merge:ancestor:error:] notation.
There was a problem hiding this comment.
I mean nonnull GTCommit * else GTCommit! is inferred for swift?
There was a problem hiding this comment.
Ah sorry, just saw the macro.
There was a problem hiding this comment.
Ah, well the header has NS_ASSUME_NONNULL_BEGIN on top, so everything assumed to have nonnull as long as it's not explicitly stated otherwise.
|
Looks good to me! @pietbrauer Are you 👍? |
|
I would vote for tests but to me it looks good otherwise. |
|
Cool, I'ma assign this to you @pietbrauer. Feel free to merge when you're 👍 on it. |
Added wrappers for git_diff_index_to_index() and git_merge_commits().