@@ -199,16 +199,18 @@ NS_ASSUME_NONNULL_BEGIN
199199// /
200200// / pathspecs - An `NSString` array of path patterns. (E.g: *.c)
201201// / If nil is passed in, all index entries will be updated.
202- // / block - A block run each time a pathspec is matched; before the index is updated.
203- // / The `matchedPathspec` parameter is a string indicating what the pathspec (from `pathspecs`) matched.
204- // / If you pass in NULL in to the `pathspecs` parameter this parameter will be empty.
205- // / The `path` parameter is a repository relative path to the file about to be updated.
202+ // / block - A block run each time a pathspec is matched; before the index is
203+ // / updated. The `matchedPathspec` parameter is a string indicating
204+ // / what the pathspec (from `pathspecs`) matched. If you pass in NULL
205+ // / in to the `pathspecs` parameter this parameter will be empty.
206+ // / The `path` parameter is a repository relative path to the file
207+ // / about to be updated.
206208// / The `stop` parameter can be set to `YES` to abort the operation.
207209// / Return `YES` to update the given path, or `NO` to skip it. May be nil.
208210// / error - When something goes wrong, this parameter is set. Optional.
209211// /
210212// / Returns `YES` in the event that everything has gone smoothly. Otherwise, `NO`.
211- - (BOOL )updatePathspecs : (NSArray *)pathspecs error : (NSError **)error passingTest : (BOOL (^)(NSString *matchedPathspec, NSString *path, BOOL *stop))block ;
213+ - (BOOL )updatePathspecs : (nullable NSArray *)pathspecs error : (NSError **)error passingTest : (nullable BOOL (^)(NSString *matchedPathspec, NSString *path, BOOL *stop))block;
212214
213215@end
214216
0 commit comments