gitlab4j-api
gitlab4j-api copied to clipboard
How could I get a file list by certain commitID
Hellow :) I've programmed as blow. (java)
List<Commit> commits = gitLabApi.getCommitsApi().getCommits(projectId, branchNm, since, until); for(Commit commit : commits) { String commitId = commit.getId(); String commitShortId = commit.getShortId(); System.out.println(commit.toString()); }
How could I get a file list when I commited. Commit object doesn't have a file list infomation.
I tried to List<TreeItem> list = repositoryApi.getTree(projectId, "src/main", commitId, true); but It's returned all repository file information.
I just want to know a file list by certain commitID. Please, help me.