Skip to content

The Unified and Autonomous Development Platform

Remove unused logger

steve0a3e7761c0f8
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/git/command/BranchForEachRefCommand.java b/gitop.web/src/main/java/com/pmease/gitop/web/git/command/BranchForEachRefCommand.java
index 2182b16be4..c0011eda64 100644
--- a/gitop.web/src/main/java/com/pmease/gitop/web/git/command/BranchForEachRefCommand.java
+++ b/gitop.web/src/main/java/com/pmease/gitop/web/git/command/BranchForEachRefCommand.java
@@ -18,13 +18,18 @@ public class BranchForEachRefCommand extends ForEachRefCommand<Map<String, Brief
super(repoDir);
}
- private static final String DEFAULT_FORMAT =
+ private static final String FORMAT =
"%(refname:short)|" + // ref name
"%(objectname)|" + // ref sha-1
"%(committername)|%(committeremail)|%(committerdate:raw)|" + // committer part
"%(authorname)|%(authoremail)|%(authordate:raw)" + // author part
"%09%(contents:subject)"; // \tcommit subject
+ @Override
+ protected String getFormat() {
+ return FORMAT;
+ }
+
@Override
protected void applyArgs(Commandline cmd) {
super.applyArgs(cmd);
@@ -33,20 +38,11 @@ public class BranchForEachRefCommand extends ForEachRefCommand<Map<String, Brief
cmd.addArgs("--sort=-committerdate");
}
- if (Strings.isNullOrEmpty(getFormat())) {
- cmd.addArgs("--format=" + DEFAULT_FORMAT);
- }
-
if (getPatterns().length == 0) {
cmd.addArgs("refs/heads/");
}
}
- @Override
- public BranchForEachRefCommand format(String format) {
- throw new UnsupportedOperationException();
- }
-
@Override
protected ForEachRefOutputHandler<Map<String, BriefCommit>> getOutputHandler() {
return new BranchOutputHandler();
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/git/command/ForEachRefCommand.java b/gitop.web/src/main/java/com/pmease/gitop/web/git/command/ForEachRefCommand.java
index 9658f7734c..1c1809019f 100644
--- a/gitop.web/src/main/java/com/pmease/gitop/web/git/command/ForEachRefCommand.java
+++ b/gitop.web/src/main/java/com/pmease/gitop/web/git/command/ForEachRefCommand.java
@@ -12,7 +12,6 @@ import com.pmease.commons.util.execution.LineConsumer;
public abstract class ForEachRefCommand<T, V extends ForEachRefCommand<T, V>> extends GitCommand<T> {
- private String format;
private String[] patterns = new String[0];
private int count;
private String sort;
@@ -25,11 +24,6 @@ public abstract class ForEachRefCommand<T, V extends ForEachRefCommand<T, V>> ex
super(repoDir, environments);
}
- public V format(String format) {
- this.format = format;
- return self();
- }
-
public V patterns(String value, String... values) {
if (value == null) {
this.patterns = new String[0];
@@ -56,6 +50,8 @@ public abstract class ForEachRefCommand<T, V extends ForEachRefCommand<T, V>> ex
abstract protected V self();
abstract protected ForEachRefOutputHandler<T> getOutputHandler();
+ abstract protected String getFormat();
+
@Override
public T call() {
@@ -92,10 +88,6 @@ public abstract class ForEachRefCommand<T, V extends ForEachRefCommand<T, V>> ex
}
}
- public String getFormat() {
- return format;
- }
-
public String[] getPatterns() {
return patterns;
}
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/project/source/branches/BranchesPage.java b/gitop.web/src/main/java/com/pmease/gitop/web/page/project/source/branches/BranchesPage.java
index 8de830bc51..f6d183d3d3 100644
--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/project/source/branches/BranchesPage.java
+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/project/source/branches/BranchesPage.java
@@ -199,7 +199,6 @@ public class BranchesPage extends ProjectCategoryPage {
BriefCommit getLastCommit(String refName) {
Map<String, BriefCommit> branches = branchesModel.getObject();
- System.out.println(branches.keySet());
if (branches.containsKey(refName))
return branches.get(refName);
else
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/project/source/tags/TagsPage.html b/gitop.web/src/main/java/com/pmease/gitop/web/page/project/source/tags/TagsPage.html
index 6bb0ab1886..bd10fed378 100644
--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/project/source/tags/TagsPage.html
+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/project/source/tags/TagsPage.html
@@ -1,5 +1,11 @@
<html xmlns:wicket>
<wicket:extend>
- <h1>Tags</h1>
+ <div class="padder">
+ <div class="page-heading">
+ <h2>Tags</h2>
+ </div>
+
+ <wicket:container wicket:id="content"></wicket:container>
+ </div>
</wicket:extend>
</html>
\ No newline at end of file