Skip to content

The Unified and Autonomous Development Platform

midwork

robin shinef209e04398a3
diff --git a/commons.git/src/main/java/com/pmease/commons/git/command/LogCommand.java b/commons.git/src/main/java/com/pmease/commons/git/command/LogCommand.java
index 15e9cb8d67..7c5e6c8cce 100644
--- a/commons.git/src/main/java/com/pmease/commons/git/command/LogCommand.java
+++ b/commons.git/src/main/java/com/pmease/commons/git/command/LogCommand.java
@@ -35,6 +35,8 @@ public class LogCommand extends GitCommand<List<Commit>> {
private boolean ignoreCase;
+ private boolean reparents;
+
private boolean listChangedFiles;
private List<String> messages = new ArrayList<>();
@@ -92,6 +94,15 @@ public class LogCommand extends GitCommand<List<Commit>> {
this.before = DateFormatUtils.ISO_DATE_FORMAT.format(before);
return this;
}
+
+ public LogCommand reparents(boolean reparents) {
+ this.reparents = reparents;
+ return this;
+ }
+
+ public boolean reparents() {
+ return reparents;
+ }
public int count() {
return count;
@@ -194,6 +205,9 @@ public class LogCommand extends GitCommand<List<Commit>> {
if (ignoreCase)
cmd.addArgs("-i");
+ if (reparents)
+ cmd.addArgs("--parents");
+
cmd.addArgs("--");
for (String path: paths)
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/commit/DepotCommitsPage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/commit/DepotCommitsPage.java
index 03f018903a..9d7ec915c4 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/commit/DepotCommitsPage.java
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/commit/DepotCommitsPage.java
@@ -106,7 +106,7 @@ public class DepotCommitsPage extends DepotPage {
protected Commits load() {
Commits commits = new Commits();
- final LogCommand logCommand = new LogCommand(getDepot().git().depotDir());
+ LogCommand logCommand = new LogCommand(getDepot().git().depotDir());
logCommand.ignoreCase(true);
List<Commit> logCommits;