| | |
| | | import org.eclipse.jgit.storage.file.FileRepository;
|
| | |
|
| | | import com.gitblit.utils.JGitUtils;
|
| | | import com.gitblit.utils.JGitUtils.DiffOutputType;
|
| | | import com.gitblit.wicket.models.PathModel.PathChangeModel;
|
| | | import com.gitblit.wicket.models.RefModel;
|
| | | import com.gitblit.wicket.models.TicketModel;
|
| | |
| | | public void testCommitDiff() throws Exception {
|
| | | Repository r = getRepository();
|
| | | RevCommit commit = JGitUtils.getCommit(r, Constants.HEAD);
|
| | | String diff = JGitUtils.getCommitDiff(r, commit, false);
|
| | | String diff = JGitUtils.getCommitDiff(r, commit, DiffOutputType.PLAIN);
|
| | | r.close();
|
| | | System.out.println(diff);
|
| | | }
|