public interface

GitInitBuilder

implements GitCommandBuilderSupport<B extends GitCommandBuilderSupport<B>>
com.atlassian.bitbucket.scm.git.command.init.GitInitBuilder

Summary

[Expand]
Inherited Constants
From interface com.atlassian.bitbucket.scm.git.command.GitCommandBuilderSupport
Public Methods
@Nonnull GitInitBuilder bare(boolean value)
@Nonnull GitCommand<?> build()
@Nonnull GitInitBuilder directory(File value)
Specifies the directory which should be initialized for use as a Git repository.
@Nonnull GitInitBuilder directory(String value)
Specifies the directory which should be initialized for use as a Git repository.
@Nonnull GitInitBuilder quiet(boolean value)
@Nonnull GitInitBuilder shared(String value)
@Nonnull GitInitBuilder template(String value)
Sets the --template path to be used when initializing the repository on disk.
@Nonnull GitInitBuilder template(File value)
Sets the --template path to be used when initializing the repository on disk.
[Expand]
Inherited Methods
From interface com.atlassian.bitbucket.scm.CommandBuilderSupport
From interface com.atlassian.bitbucket.scm.git.command.GitCommandBuilderSupport

Public Methods

@Nonnull public GitInitBuilder bare (boolean value)

@Nonnull public GitCommand<?> build ()

@Nonnull public GitInitBuilder directory (File value)

Specifies the directory which should be initialized for use as a Git repository. The directory may exist already, but if it doesn't it will be created by git init.

Parameters
value the new repository's location on disk
Returns
  • this

@Nonnull public GitInitBuilder directory (String value)

Specifies the directory which should be initialized for use as a Git repository. The directory may exist already, but if it doesn't it will be created by git init.

Parameters
value the new repository's location on disk
Returns
  • this

@Nonnull public GitInitBuilder quiet (boolean value)

@Nonnull public GitInitBuilder shared (String value)

@Nonnull public GitInitBuilder template (String value)

Sets the --template path to be used when initializing the repository on disk. The Git distribution includes its own template, which can be overridden by using this flag.

Parameters
value the --template path, or null to clear the flag
Returns
  • this

@Nonnull public GitInitBuilder template (File value)

Sets the --template path to be used when initializing the repository on disk. The Git distribution includes its own template, which can be overridden by using this flag.

Parameters
value the --template path, or null to clear the flag
Returns
  • this