public final enum

GitDiffOutput

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.atlassian.bitbucket.scm.git.command.diff.GitDiffOutput

Class Overview

Enumerates output modes for diff-core commands like diff, diff-tree and log. These modes are mutually exclusive, so they are defined as an enumeration rather than having distinct options on the associated builder.

Summary

Enum Values
GitDiffOutput  CHECK  Checks the diff for whitespace errors, using the process return code to signal whether any are found. 
GitDiffOutput  DEFAULT  Allows the command to produce its default output, without providing any specific argument to adjust it. 
GitDiffOutput  NAME_ONLY  Shows only the names of changed files. 
GitDiffOutput  NAME_STATUS  Shows the names of changed files and a status describing the change. 
GitDiffOutput  PATCH  Generate patch output. 
GitDiffOutput  SUPPRESS  Suppresses all diff output. 
Public Methods
@Nullable String getFlag()
boolean isFlagged()
static GitDiffOutput valueOf(String name)
final static GitDiffOutput[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final GitDiffOutput CHECK

Checks the diff for whitespace errors, using the process return code to signal whether any are found.

public static final GitDiffOutput DEFAULT

Allows the command to produce its default output, without providing any specific argument to adjust it.

public static final GitDiffOutput NAME_ONLY

Shows only the names of changed files.

public static final GitDiffOutput NAME_STATUS

Shows the names of changed files and a status describing the change.

public static final GitDiffOutput PATCH

Generate patch output.

public static final GitDiffOutput SUPPRESS

Suppresses all diff output.

Public Methods

@Nullable public String getFlag ()

Returns
  • the command line flag for this output mode, if any

public boolean isFlagged ()

Returns
  • true if this mode requires a command line flag; otherwise, false

public static GitDiffOutput valueOf (String name)

public static final GitDiffOutput[] values ()