mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
improve reset methods
This commit is contained in:
@@ -122,6 +122,8 @@ public final class BlameCommandBuilder
|
|||||||
public BlameCommandBuilder reset()
|
public BlameCommandBuilder reset()
|
||||||
{
|
{
|
||||||
request.reset();
|
request.reset();
|
||||||
|
this.disableCache = false;
|
||||||
|
this.disablePreProcessors = false;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -343,7 +345,7 @@ public final class BlameCommandBuilder
|
|||||||
private Cache<CacheKey, BlameResult> cache;
|
private Cache<CacheKey, BlameResult> cache;
|
||||||
|
|
||||||
/** disable change */
|
/** disable change */
|
||||||
private boolean disableCache;
|
private boolean disableCache = false;
|
||||||
|
|
||||||
/** disable the execution of pre processors */
|
/** disable the execution of pre processors */
|
||||||
private boolean disablePreProcessors = false;
|
private boolean disablePreProcessors = false;
|
||||||
|
|||||||
@@ -126,6 +126,8 @@ public final class BrowseCommandBuilder
|
|||||||
public BrowseCommandBuilder reset()
|
public BrowseCommandBuilder reset()
|
||||||
{
|
{
|
||||||
request.reset();
|
request.reset();
|
||||||
|
this.disableCache = false;
|
||||||
|
this.disablePreProcessors = false;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ import sonia.scm.repository.Changeset;
|
|||||||
import sonia.scm.repository.ChangesetPagingResult;
|
import sonia.scm.repository.ChangesetPagingResult;
|
||||||
import sonia.scm.repository.PreProcessorUtil;
|
import sonia.scm.repository.PreProcessorUtil;
|
||||||
import sonia.scm.repository.Repository;
|
import sonia.scm.repository.Repository;
|
||||||
|
import sonia.scm.repository.RepositoryCacheKey;
|
||||||
import sonia.scm.repository.RepositoryException;
|
import sonia.scm.repository.RepositoryException;
|
||||||
import sonia.scm.repository.spi.LogCommand;
|
import sonia.scm.repository.spi.LogCommand;
|
||||||
import sonia.scm.repository.spi.LogCommandRequest;
|
import sonia.scm.repository.spi.LogCommandRequest;
|
||||||
@@ -55,7 +56,6 @@ import sonia.scm.repository.spi.LogCommandRequest;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import sonia.scm.repository.RepositoryCacheKey;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LogCommandBuilder is able to show the history of a file in a
|
* LogCommandBuilder is able to show the history of a file in a
|
||||||
@@ -149,6 +149,8 @@ public final class LogCommandBuilder
|
|||||||
public LogCommandBuilder reset()
|
public LogCommandBuilder reset()
|
||||||
{
|
{
|
||||||
request.reset();
|
request.reset();
|
||||||
|
this.disableCache = false;
|
||||||
|
this.disablePreProcessors = false;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user