Permalink
Browse files

I heard new line numbers were also important.

:trollface:
  • Loading branch information...
1 parent 0cddf1c commit 02c85077fd0698a5dd643a850348d9197f2c949d Danny Greg committed Dec 20, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 Classes/GTDiffLine.h
  2. +2 −1 Classes/GTDiffLine.m
View
@@ -23,8 +23,9 @@ typedef enum : git_diff_line_t {
@property (nonatomic, readonly) NSString *content;
@property (nonatomic, readonly) NSUInteger oldLineNumber;
+@property (nonatomic, readonly) NSUInteger newLineNumber;
@property (nonatomic, readonly) GTDiffLineOrigin origin;
-- (instancetype)initWithContent:(NSString *)content oldLineNumber:(NSUInteger)oldLineNumber origin:(GTDiffLineOrigin)origin;
+- (instancetype)initWithContent:(NSString *)content oldLineNumber:(NSUInteger)oldLineNumber newLineNumber:(NSUInteger)newLineNumber origin:(GTDiffLineOrigin)origin;
@end
View
@@ -10,12 +10,13 @@
@implementation GTDiffLine
-- (instancetype)initWithContent:(NSString *)content oldLineNumber:(NSUInteger)oldLineNumber origin:(GTDiffLineOrigin)origin {
+- (instancetype)initWithContent:(NSString *)content oldLineNumber:(NSUInteger)oldLineNumber newLineNumber:(NSUInteger)newLineNumber origin:(GTDiffLineOrigin)origin {
self = [super init];
if (self == nil) return nil;
_content = [content copy];
_oldLineNumber = oldLineNumber;
+ _newLineNumber = newLineNumber;
_origin = origin;
return self;

0 comments on commit 02c8507

Please sign in to comment.