I am working on a Java product for which Git functions will be integrated. Using one of the Git functions, I added 10+ files to the Git repository by placing them, followed by fixing them in a single commit.
Is it possible to repeat the above process? Ie Search for a list of files transferred as part of the commit.
I got the commit with the command git.log(), but I'm not sure how to get the list of files to commit.
Code example:
Git git = (...);
Iterable<RevCommit> logs = git.log().call();
for(RevCommit commit : logs) {
String commitID = commit.getName();
if(commitID != null && !commitID.isEmpty()) {
TableItem item = new TableItem(table, SWT.None);
item.setText(commitID);
}
}
source
share