GetCommitterEmail() public method

public GetCommitterEmail ( ) : string
return string
コード例 #1
0
        /// <summary>Creates new PersonIdent from config info in repository, with current time.
        ///     </summary>
        /// <remarks>
        /// 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.
        /// </remarks>
        /// <param name="repo"></param>
        public PersonIdent(Repository repo)
        {
            UserConfig config = repo.GetConfig().Get(UserConfig.KEY);

            name         = config.GetCommitterName();
            emailAddress = config.GetCommitterEmail();
            when         = SystemReader.GetInstance().GetCurrentTime();
            tzOffset     = SystemReader.GetInstance().GetTimezone(when);
        }
コード例 #2
0
 private PersonIdent(UserConfig config) : this(config.GetCommitterName(), config.GetCommitterEmail
                                                   ())
 {
 }