Declared in | GITActor+Parsing.h |
---|
This category provides additional initialisers for GITActor.
These initialisers aid in creating GITActor objects from the kind of content typically retrieved by the GITObject
(Parsing) category methods.
+ (GITActor *)actorWithParsedString:(NSString *)str
A preprocessed string of the form "[name] <[email]"
An actor object with the extracted name and email.
Creates and returns an actor object by parsing the name and email from a string contained in a GITCommit
header (author or committer) line.
This method expects pre-processed input of the form: "[name] <[email]". example: "E. L. Gato <elgato@catz.com" where name and email are separated by the string " <"
GITActor+Parsing.h
- (id)initWithParsedString:(NSString *)str
A preprocessed string of the form "[name] <[email]"
An actor object with the extracted name and email.
Creates and returns an actor object by parsing the name and email from a string contained in a GITCommit
header (author or committer) line.
This method expects pre-processed input of the form: "[name] <[email]". example: "E. L. Gato <elgato@catz.com" where name and email are separated by the string " <"
GITActor+Parsing.h
Last updated: 2011-2-20