public interface

GitGcBuilder

implements GitCommandBuilderSupport<B extends GitCommandBuilderSupport<B>>
com.atlassian.bitbucket.scm.git.command.gc.GitGcBuilder

Class Overview

A builder which can be used to construct a command for running git gc.

Summary

[Expand]
Inherited Constants
From interface com.atlassian.bitbucket.scm.git.command.GitCommandBuilderSupport
Public Methods
@Nonnull GitGcBuilder aggressive(boolean value)
@Nonnull GitGcBuilder auto(boolean value)
@Nonnull Command<?> build()
@Nonnull GitGcBuilder errorHandler(CommandErrorHandler value)
Registers the provided error handler to receive stderr output when the built command is run.
@Nonnull GitGcBuilder prune(boolean value)
@Nonnull GitGcBuilder pruneOlderThan(String value)
@Nonnull GitGcBuilder quiet(boolean value)
[Expand]
Inherited Methods
From interface com.atlassian.bitbucket.scm.CommandBuilderSupport
From interface com.atlassian.bitbucket.scm.git.command.GitCommandBuilderSupport

Public Methods

@Nonnull public GitGcBuilder aggressive (boolean value)

@Nonnull public GitGcBuilder auto (boolean value)

@Nonnull public Command<?> build ()

@Nonnull public GitGcBuilder errorHandler (CommandErrorHandler value)

Registers the provided error handler to receive stderr output when the built command is run.

git gc outputs some information to stderr rather than stdout. For example, git gc --auto writes to stderr to indicate that auto-packing is actually happening.

Parameters
value the handler to receive stderr output
Returns
  • this

@Nonnull public GitGcBuilder prune (boolean value)

@Nonnull public GitGcBuilder pruneOlderThan (String value)

@Nonnull public GitGcBuilder quiet (boolean value)