| | |
| | | import org.eclipse.jgit.revwalk.RevCommit; |
| | | |
| | | import com.gitblit.GitBlit; |
| | | import com.gitblit.Keys; |
| | | import com.gitblit.models.PathModel.PathChangeModel; |
| | | import com.gitblit.models.SubmoduleModel; |
| | | import com.gitblit.utils.DiffUtils; |
| | |
| | | |
| | | Repository r = getRepository(); |
| | | |
| | | DiffOutputType diffType = DiffOutputType.forName(GitBlit.getString(Keys.web.diffStyle, |
| | | DiffOutputType.GITBLIT.name())); |
| | | |
| | | RevCommit commit = getCommit(); |
| | | |
| | | String diff = DiffUtils.getCommitDiff(r, commit, diffType); |
| | | String diff = DiffUtils.getCommitDiff(r, commit, DiffOutputType.HTML); |
| | | |
| | | List<String> parents = new ArrayList<String>(); |
| | | if (commit.getParentCount() > 0) { |
| | |
| | | |
| | | add(new CommitHeaderPanel("commitHeader", repositoryName, commit)); |
| | | |
| | | addFullText("fullMessage", commit.getFullMessage(), true); |
| | | addFullText("fullMessage", commit.getFullMessage()); |
| | | |
| | | // changed paths list |
| | | List<PathChangeModel> paths = JGitUtils.getFilesInCommit(r, commit); |