Skip to content

The Unified and Autonomous Development Platform

Midway work

robin shinec81f51de83a0
diff --git a/commons.git/src/main/java/com/pmease/commons/git/command/ListChangedFilesCommand.java b/commons.git/src/main/java/com/pmease/commons/git/command/ListChangedFilesCommand.java
index 82b51c7069..86e5e599d0 100644
--- a/commons.git/src/main/java/com/pmease/commons/git/command/ListChangedFilesCommand.java
+++ b/commons.git/src/main/java/com/pmease/commons/git/command/ListChangedFilesCommand.java
@@ -51,7 +51,7 @@ public class ListChangedFilesCommand extends GitCommand<Collection<String>> {
Commandline cmd = cmd();
- cmd.addArgs("diff", "--name-only", fromRev + ".." + toRev);
+ cmd.addArgs("diff", "--name-only", "--find-renames", fromRev + ".." + toRev);
if (path != null)
cmd.addArgs("--", path);
diff --git a/gitplex.product/src/test/java/gitplex/product/Test.java b/gitplex.product/src/test/java/gitplex/product/Test.java
index 9edb16e334..b10dd53b80 100644
--- a/gitplex.product/src/test/java/gitplex/product/Test.java
+++ b/gitplex.product/src/test/java/gitplex/product/Test.java
@@ -2,13 +2,10 @@ package gitplex.product;
import java.io.IOException;
-import org.apache.commons.lang3.StringUtils;
-
public class Test {
@org.junit.Test
public void test() throws IOException {
- System.out.println(StringUtils.substringBefore("hello", "."));
}
}
\ No newline at end of file
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/diff/RevisionDiffPanel.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/diff/RevisionDiffPanel.java
index 0ed6b7a118..176431ed25 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/diff/RevisionDiffPanel.java
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/diff/RevisionDiffPanel.java
@@ -1,8 +1,12 @@
package com.pmease.gitplex.web.component.diff;
+import java.util.ArrayList;
+import java.util.List;
+
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;
+import com.pmease.commons.git.Change;
import com.pmease.gitplex.core.comment.InlineCommentSupport;
import com.pmease.gitplex.core.model.Repository;
@@ -17,6 +21,8 @@ public class RevisionDiffPanel extends Panel {
private final InlineCommentSupport commentSupport;
+ private final List<Change> changes;
+
public RevisionDiffPanel(String id, IModel<Repository> repoModel, String oldRev, String newRev,
InlineCommentSupport commentSupport) {
super(id);
@@ -25,6 +31,14 @@ public class RevisionDiffPanel extends Panel {
this.oldRev = oldRev;
this.newRev = newRev;
this.commentSupport = commentSupport;
+
+ changes = new ArrayList<>();
+ }
+
+ @Override
+ protected void onInitialize() {
+ super.onInitialize();
+
}
@Override