Reputation: 9
I've just started working with javaGit in order to gather information about commits to git on a server. I can get the author, subject, message and date but I can't seem to be able to view how many files were changed, which files were changed or even which files were committed. Is this because Git doesn't store this locally? If so how would I go about getting this data and if not why can't javaGit see it?
Upvotes: 0
Views: 71
Reputation: 5308
The GitLogResponse.Commit.getFiles()
method returns a list of affected files. The CommitFile
class provides further infomation about the affected file and the number of changed lines.
public java.util.List<GitLogResponse.CommitFile> getFiles()
This returns the list of files affected by a particular commit.
Upvotes: 2