-
Notifications
You must be signed in to change notification settings - Fork 281
GTOID improvements #206
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
GTOID improvements #206
Conversation
@@ -9,7 +9,7 @@ | |||
#import "git2.h" | |||
|
|||
// Represents an object ID. | |||
@interface GTOID : NSObject | |||
@interface GTOID : NSObject < NSCopying > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style: no spaces on either side of NSCopying
.
Awesome, thanks! Just some style notes. |
@@ -32,6 +32,10 @@ | |||
NSString *secondSHA = @"82dc47f6ba3beecab33080a1136d8913098e1801"; | |||
expect(testOID).notTo.equal([[GTOID alloc] initWithSHA:secondSHA]); | |||
}); | |||
|
|||
it(@"should compare equal to an OID created with the same SHA from a C string", ^{ | |||
expect(testOID).to.equal([[GTOID alloc] initWithSHACString: "f7ecd8f4404d3a388efbff6711f1bdf28ffd16a0"]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style: no space after colon.
I think now I am done with the GTOID class. I started another branch (https://github.com/5sw/objective-git/tree/use_gtoid) where I change the use of the plain |
// Initializes the receiver by converting the given SHA to an OID | ||
// optionally returning a NSError instance on failure. | ||
// | ||
// SHA - The to convert to an OID. Cannot be nil. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style: align the -
's
Loving this work @5sw! It would be great to have some unit tests for the new inintializers though. |
Close! Mostly just a couple style notes. ⛵ |
OK, fixed those style issues, added the better error message and some unit tests for the error-returning initializers. |
💥 🎆 Thanks! |
✨ |
GTOID improvements
No description provided.