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

Exposing line info from git_diff_hunk in GTDiffHunk. #579

Merged
merged 1 commit into from
Jul 13, 2016

Conversation

dougfales
Copy link

I didn't see how to get at these fields in the underlying git_diff_hunk, so I copied them into obj-c properties on GTDiffhunk. I'm not really sure if that's the right way to do it–if you'd prefer I pass through to the git_diff_hunk or if there's some other way that I'm missing.

I updated the hunk-related spec in GTDiffSpec.m because I didn't see any test files dedicated specifically to GTDiffHunk.

@@ -22,6 +22,18 @@ NS_ASSUME_NONNULL_BEGIN
/// The number of lines represented in the hunk.
@property (nonatomic, readonly) NSUInteger lineCount;

// The starting line number in the old file
Copy link
Member

Choose a reason for hiding this comment

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

Please use triple forward slashes for the documentation comments

@pietbrauer
Copy link
Member

Just a documentation issue else I am fine with this. Could you rebase your commits afterwards?

@dougfales dougfales force-pushed the expose-git-diff-hunk-line-info branch from 886a41d to 8389858 Compare July 13, 2016 03:19
@dougfales dougfales force-pushed the expose-git-diff-hunk-line-info branch from 8389858 to ddd558b Compare July 13, 2016 03:22
@dougfales
Copy link
Author

Thanks @pietbrauer! I've updated the comments and rebased. Let me know if there's anything else I can do.

@pietbrauer pietbrauer merged commit c1473db into libgit2:master Jul 13, 2016
@pietbrauer
Copy link
Member

Superb, thanks! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants