GitSharp.Core.RepositoryConfig.getCommitterEmail C# (CSharp) Method

getCommitterEmail() public method

public getCommitterEmail ( ) : string
return string
        public string getCommitterEmail()
        {
            return getUserConfig().getCommitterEmail();
        }

Usage Example

Exemplo n.º 1
0
        private readonly int tzOffset; // offset in minutes to UTC

        /// <summary>
        /// Creates new PersonIdent from config info in repository, with current time.
        /// This new PersonIdent gets the info from the default committer as available
        /// from the configuration.
        /// </summary>
        /// <param name="repo"></param>
        public PersonIdent(Repository repo)
        {
            RepositoryConfig config = repo.Config;

            Name         = config.getCommitterName();
            EmailAddress = config.getCommitterEmail();
            When         = SystemReader.getInstance().getCurrentTime();
            tzOffset     = SystemReader.getInstance().getTimezone(When);
        }