gitlab4j-api icon indicating copy to clipboard operation
gitlab4j-api copied to clipboard

How could I get a file list by certain commitID

Open birdfe76 opened this issue 3 years ago • 0 comments

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.

birdfe76 avatar May 20 '22 03:05 birdfe76