public interface

GitCatFile

com.atlassian.bitbucket.scm.git.command.catfile.GitCatFile

Class Overview

A builder to construct a git command for running git cat-file.

Summary

Public Methods
@Nonnull GitCatFileBatchBuilder batch(CommandInputHandler inputHandler)
Construct a builder for running cat-file in batch mode, which prints object type, size and content.
@Nonnull GitCatFileBatchBuilder batchCheck(CommandInputHandler inputHandler)
Construct a builder for running cat-file in batch-check mode, which prints object type and size (no content).
@Nonnull GitCatFileBuilder pretty()
Construct a cat-file builder which pretty prints the content of an object
@Nonnull GitCatFileBuilder type()
Constructs a cat-file builder which prints the type of an object (no content)

Public Methods

@Nonnull public GitCatFileBatchBuilder batch (CommandInputHandler inputHandler)

Construct a builder for running cat-file in batch mode, 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

@Nonnull public GitCatFileBatchBuilder batchCheck (CommandInputHandler inputHandler)

Construct a builder for running cat-file in batch-check mode, 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

@Nonnull public GitCatFileBuilder pretty ()

Construct a cat-file builder which pretty prints the content of an object

Returns
  • a builder for git cat-file -p

@Nonnull public GitCatFileBuilder type ()

Constructs a cat-file builder which prints the type of an object (no content)

Returns
  • a builder for git cat-file -t