@@ -607,45 +607,45 @@ typedef NS_ENUM(NSInteger, GTRepositoryStateType) {
607607
608608// / Creates a new note in this repo (using a default notes reference, e.g. "refs/notes/commits")
609609// /
610- // / note - Note text.
611- // / theTarget - Object (usually a commit) to which this note attaches to.
612- // / This object must belong to this repository.
613- // / ref - Name for the notes reference in the repo, or nil for default ("refs/notes/commits")
614- // / author - Signature of the author for this note, and
615- // / of the note creation time
616- // / committer - Signature of the committer for this note.
617- // / overwrite - If set to YES, the note will be overwritten if it already exists.
618- // / error - Will be filled with a NSError object in case of error.
619- // / May be NULL.
610+ // / note - Note text.
611+ // / theTarget - Object (usually a commit) to which this note refers to.
612+ // / This object must belong to this repository.
613+ // / referenceName - Name for the notes reference in the repo, or nil for default ("refs/notes/commits")
614+ // / author - Signature of the author for this note, and
615+ // / of the note creation time
616+ // / committer - Signature of the committer for this note.
617+ // / overwrite - If set to YES, the note will be overwritten if it already exists.
618+ // / error - Will be filled with a NSError object in case of error.
619+ // / May be NULL.
620620// /
621621// / Returns the newly created note or nil on error.
622- - (nullable GTNote *)createNote : (NSString *)note target : (GTObject *)theTarget ref : (nullable NSString *)ref author : (GTSignature *)author committer : (GTSignature *)committer overwriteIfExists : (BOOL )overwrite error : (NSError **)error ;
622+ - (nullable GTNote *)createNote : (NSString *)note target : (GTObject *)theTarget referenceName : (nullable NSString *)referenceName author : (GTSignature *)author committer : (GTSignature *)committer overwriteIfExists : (BOOL )overwrite error : (NSError **)error ;
623623
624624// / Removes a note attached to object in this repo (using a default notes reference, e.g. "refs/notes/commits")
625625// /
626- // / parentObject - Object (usually a commit) to which the note to be removed is attached to.
627- // / This object must belong to this repository.
628- // / ref - Name for the notes reference in the repo, or nil for default ("refs/notes/commits")
629- // / author - Signature of the author for this note removal, and
630- // / of the note removal time
631- // / committer - Signature of the committer for this note removal.
632- // / error - Will be filled with a NSError object in case of error.
633- // / May be NULL.
626+ // / parentObject - Object (usually a commit) to which the note to be removed is attached to.
627+ // / This object must belong to this repository.
628+ // / referenceName - Name for the notes reference in the repo, or nil for default ("refs/notes/commits")
629+ // / author - Signature of the author for this note removal, and
630+ // / of the note removal time
631+ // / committer - Signature of the committer for this note removal.
632+ // / error - Will be filled with a NSError object in case of error.
633+ // / May be NULL.
634634// /
635635// / Returns the YES on success and NO on error.
636- - (BOOL )removeNoteFromObject : (GTObject *)parentObject ref : (nullable NSString *)ref author : (GTSignature *)author committer : (GTSignature *)committer error : (NSError **)error ;
636+ - (BOOL )removeNoteFromObject : (GTObject *)parentObject referenceName : (nullable NSString *)referenceName author : (GTSignature *)author committer : (GTSignature *)committer error : (NSError **)error ;
637637
638638// / Enumerates through all stored notes in this repo (using a default notes reference, e.g. "refs/notes/commits")
639639// /
640- // / error - Will be filled with a NSError object in case of error.
641- // / May be null .
642- // / ref - Name for the notes reference in the repo, or nil for default ("refs/notes/commits")
643- // / block - A block to be called on each encountered note object. The block accepts
644- // / a reference to `note`, an `object` that is annotated with the note.
645- // / If the block sets `stop` to YES, the iterator is finished.
640+ // / referenceName - Name for the notes reference in the repo, or nil for default ("refs/notes/commits")
641+ // / error - Will be filled with a NSError object in case of error .
642+ // / May be NULL.
643+ // / block - A block to be called on each encountered note object. The block accepts
644+ // / a reference to `note`, an `object` that is annotated with the note.
645+ // / If the block sets `stop` to YES, the iterator is finished.
646646// /
647647// / Returns YES on overall success or NO on error of any kind.
648- - (BOOL )enumerateNotesWithError : ( NSError **) error ref : (nullable NSString *) ref usingBlock : (void (^)(GTNote *note, GTObject *object, BOOL *stop))block ;
648+ - (BOOL )enumerateNotesWithReferenceName : (nullable NSString *) referenceName error : ( NSError **) error usingBlock : (void (^)(GTNote *note, GTObject *object, BOOL *stop))block ;
649649
650650@end
651651
0 commit comments