Interface GitConfigGetAllBuilder

All Superinterfaces:
com.atlassian.bitbucket.scm.CommandBuilderSupport<GitConfigGetAllBuilder>, GitCommandBuilderSupport<GitConfigGetAllBuilder>, TypedGitConfigBuilder<GitConfigGetAllBuilder>

public interface GitConfigGetAllBuilder extends TypedGitConfigBuilder<GitConfigGetAllBuilder>
A builder for constructing git config --get-all commands.
Since:
4.12
  • Method Details

    • build

      @Nonnull GitCommand<List<String>> build()
      Builds a command which will return a List containing all configured values for the key specified when the builder was created. Values are not parsed. The List returned will never be null; if the specified key has no configured values git config exits with a non-zero status and a CommandFailedException is thrown.
      Returns:
      a command which, when called, will retrieve a list of the values configured for the specified key
    • nullTerminated

      @Nonnull GitConfigGetAllBuilder nullTerminated(boolean value)
      Parameters:
      value - true to use NUL characters to terminate values; otherwise, false to use newlines (the default)
      Returns:
      this