| | |
| | | import com.gitblit.utils.JGitUtils;
|
| | | import com.gitblit.wicket.WicketUtils;
|
| | |
|
| | |
|
| | | public class PatchPage extends WebPage {
|
| | |
|
| | | public PatchPage(PageParameters params) {
|
| | |
| | | redirectToInterceptPage(new RepositoriesPage());
|
| | | }
|
| | | final String repositoryName = WicketUtils.getRepositoryName(params);
|
| | | final String objectId = WicketUtils.getObject(params); |
| | | final String objectId = WicketUtils.getObject(params);
|
| | | final String blobPath = WicketUtils.getPath(params);
|
| | |
|
| | | ServletWebRequest servletWebRequest = (ServletWebRequest) getRequest();
|
| | |
| | | String patch = JGitUtils.getCommitPatch(r, commit, blobPath);
|
| | | add(new Label("patchText", patch));
|
| | | r.close();
|
| | | } |
| | | }
|
| | | }
|