public GitDirectoryInfo(Commit commit) { if (commit is null) { throw new ArgumentNullException(nameof(commit)); } Commit = commit.GetGitId(); Name = ""; m_Parent = null; m_Tree = commit.Tree; m_Directories = new Lazy <Dictionary <string, GitDirectoryInfo> >(LoadDirectories); m_Files = new Lazy <Dictionary <string, GitFileInfo> >(LoadFiles); }