Git.framework Reference Library

GITActor(Parsing) Category Reference

GITActor(Parsing) Category Reference

Declared in GITActor+Parsing.h

Overview

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.

Tasks

Class Methods

actorWithParsedString:

+ (GITActor *)actorWithParsedString:(NSString *)str
Parameters
str

A preprocessed string of the form "[name] <[email]"

Return Value

An actor object with the extracted name and email.

Discussion

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 " <"

See Also
Declared In
GITActor+Parsing.h

Instance Methods

initWithParsedString:

- (id)initWithParsedString:(NSString *)str
Parameters
str

A preprocessed string of the form "[name] <[email]"

Return Value

An actor object with the extracted name and email.

Discussion

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 " <"

See Also
Declared In
GITActor+Parsing.h

Last updated: 2011-2-20