Interface GitCatFile


public interface GitCatFile
A builder to construct a git command for running git cat-file.
  • Method Summary

    Modifier and Type
    Method
    Description
    batch(com.atlassian.bitbucket.scm.CommandInputHandler inputHandler)
    Construct a builder for running cat-file --batch, which prints object type, size and content.
    batchCheck(com.atlassian.bitbucket.scm.CommandInputHandler inputHandler)
    Construct a builder for running cat-file --batch-check, which prints object type and size (no content).
    Construct a cat-file -p builder, which pretty prints the content of an object
    Constructs a cat-file -s builder, which prints the size of an object (no content).
    Constructs a cat-file -t builder, which prints the type of an object (no content)
  • Method Details

    • batch

      @Nonnull GitCatFileBatchBuilder batch(@Nonnull com.atlassian.bitbucket.scm.CommandInputHandler inputHandler)
      Construct a builder for running cat-file --batch, which prints object type, size and content.
      Parameters:
      inputHandler - handler that provides the list of object IDs to the command (one ID per line)
      Returns:
      a builder for git cat-file --batch
      Since:
      4.2
    • batchCheck

      @Nonnull GitCatFileBatchBuilder batchCheck(@Nonnull com.atlassian.bitbucket.scm.CommandInputHandler inputHandler)
      Construct a builder for running cat-file --batch-check, which prints object type and size (no content).
      Parameters:
      inputHandler - handler that provides the list of object IDs to the command (one ID per line)
      Returns:
      a builder for git cat-file --batch-check
      Since:
      4.2
    • pretty

      @Nonnull GitCatFileBuilder pretty()
      Construct a cat-file -p builder, which pretty prints the content of an object
      Returns:
      a builder for git cat-file -p
    • size

      @Nonnull GitCatFileBuilder size()
      Constructs a cat-file -s builder, which prints the size of an object (no content).
      Returns:
      a builder for git cat-file -s
      Since:
      7.7
    • type

      @Nonnull GitCatFileBuilder type()
      Constructs a cat-file -t builder, which prints the type of an object (no content)
      Returns:
      a builder for git cat-file -t