Exemple #1
0
        public static List <string> commit_Files(this RevCommit revCommit, API_NGit nGit)
        {
            var repoFiles = new List <string>();

            revCommit.commit_TreeWalk(nGit, treeWalk => repoFiles.Add(treeWalk.PathString));
            return(repoFiles);
        }
Exemple #2
0
        public static List <GitData_File> gitData_Files(this RevCommit revCommit, API_NGit nGit)
        {
            var gitData_Files = new List <GitData_File>();

            revCommit.commit_TreeWalk(nGit, treeWalk => gitData_Files.add_File(treeWalk));
            return(gitData_Files);
        }
Exemple #3
0
        public static Dictionary <string, string> commit_Files_IndexedBy_SHA1(this RevCommit revCommit, API_NGit nGit)
        {
            var repoFiles = new Dictionary <string, string>();

            revCommit.commit_TreeWalk(nGit, treeWalk =>
            {
                var objectId = treeWalk.GetObjectId(0);
                repoFiles.Add(objectId.Name, treeWalk.PathString);
            });
            return(repoFiles);
        }