Skip to content

Commit 87c6b2a

Browse files
committed
Add similarity accessor to diff deltas
1 parent 5e77065 commit 87c6b2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎ObjectiveGit/GTDiffDelta.m‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ - (GTDiffFile *)newFile {
5959
- (GTDeltaType)type {
6060
return (GTDeltaType)self.git_diff_delta.status;
6161
}
62+
63+
- (double)similarity {
64+
return (double)(self.git_diff_delta.similarity / 100.0);
6265
}
6366

6467
#pragma mark Lifecycle

0 commit comments

Comments
 (0)