Interface GitCatFile
public interface GitCatFile
A builder to construct a git command for running
git cat-file.-
Method Summary
Modifier and TypeMethodDescriptionbatch(com.atlassian.bitbucket.scm.CommandInputHandler inputHandler) Construct a builder for runningcat-file --batch, which prints object type, size and content.batchCheck(com.atlassian.bitbucket.scm.CommandInputHandler inputHandler) Construct a builder for runningcat-file --batch-check, which prints object type and size (no content).pretty()Construct acat-file -pbuilder, which pretty prints the content of an objectsize()Constructs acat-file -sbuilder, which prints the size of an object (no content).type()Constructs acat-file -tbuilder, 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 runningcat-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 runningcat-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
Construct acat-file -pbuilder, which pretty prints the content of an object- Returns:
- a builder for
git cat-file -p
-
size
Constructs acat-file -sbuilder, which prints the size of an object (no content).- Returns:
- a builder for
git cat-file -s - Since:
- 7.7
-
type
Constructs acat-file -tbuilder, which prints the type of an object (no content)- Returns:
- a builder for
git cat-file -t
-