We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9566e2 commit f7a846eCopy full SHA for f7a846e
ObjectiveGit/GTDiffDelta.h
@@ -73,6 +73,8 @@ NS_ASSUME_NONNULL_BEGIN
73
/// Think "status" as in `git status`.
74
@property (nonatomic, readonly) GTDeltaType type;
75
76
+@property (nonatomic, readonly, assign) double similarity;
77
+
78
/// Diffs the given blob and data buffer.
79
///
80
/// oldBlob - The blob which should comprise the left side of the diff. May be
ObjectiveGit/GTDiffDelta.m
@@ -59,6 +59,9 @@ - (GTDiffFile *)newFile {
59
- (GTDeltaType)type {
60
return (GTDeltaType)self.git_diff_delta.status;
61
}
62
63
+- (double)similarity {
64
+ return (double)(self.git_diff_delta.similarity / 100.0);
65
66
67
#pragma mark Lifecycle
0 commit comments