C# Class dotGit.Contributer

Class to represent an author or committer in the Git world. Mainly used by the pack file when reading a Commit.
Show file Open project: schacon/dotgit Class Usage Examples

Public Methods

Method Description
Contributer ( string name ) : System
Contributer ( string name, string email ) : System
Parse ( string input ) : Contributer

Load Contributer from git formatted string.

ToString ( ) : string

Returns the name and email in git format: 'John Doe <[email protected]>'

Private Methods

Method Description
Contributer ( ) : System

Method Details

Contributer() public method

public Contributer ( string name ) : System
name string
return System

Contributer() public method

public Contributer ( string name, string email ) : System
name string
email string
return System

Parse() public static method

Load Contributer from git formatted string.
public static Parse ( string input ) : Contributer
input string string in format: 'John Doe <[email protected]>'
return Contributer

ToString() public method

Returns the name and email in git format: 'John Doe <[email protected]>'
public ToString ( ) : string
return string