/// <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); }
private PersonIdent(UserConfig config) : this(config.GetCommitterName(), config.GetCommitterEmail ()) { }