| | |
| | | return;
|
| | | }
|
| | |
|
| | | String patch;
|
| | | if (StringUtils.isEmpty(baseObjectId)) {
|
| | | patch = JGitUtils.getCommitPatch(r, commit, blobPath);
|
| | | } else {
|
| | | RevCommit baseCommit = JGitUtils.getCommit(r, baseObjectId);
|
| | | patch = JGitUtils.getCommitPatch(r, baseCommit, commit, blobPath); |
| | | RevCommit baseCommit = null;
|
| | | if (!StringUtils.isEmpty(baseObjectId)) {
|
| | | baseCommit = JGitUtils.getCommit(r, baseObjectId);
|
| | | }
|
| | | String patch = JGitUtils.getCommitPatch(r, baseCommit, commit, blobPath);
|
| | | add(new Label("patchText", patch));
|
| | | r.close();
|
| | | }
|