public final enum

GitDiffColor

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.GitDiffColor

Class Overview

Enumerates the possible modes for git diff-core --color.

Summary

Enum Values
GitDiffColor  ALWAYS  Always include color markers in the diff output. 
GitDiffColor  AUTO  Automatically turn color markers in diff output on when connected to a terminal. 
GitDiffColor  DEFAULT  Uses the .gitconfig-configured setting for color markers in diff output. 
GitDiffColor  NEVER  Never include color markers in the diff output, even if it is configured in .gitconfig
Public Methods
String getFlag()
boolean isFlagged()
static GitDiffColor valueOf(String name)
final static GitDiffColor[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final GitDiffColor ALWAYS

Always include color markers in the diff output.

public static final GitDiffColor AUTO

Automatically turn color markers in diff output on when connected to a terminal.

Warning: This value is included for completeness in enumerating Git's supported color modes. However, it functions the same as NEVER, here, since the system is not a terminal.

public static final GitDiffColor DEFAULT

Uses the .gitconfig-configured setting for color markers in diff output.

public static final GitDiffColor NEVER

Never include color markers in the diff output, even if it is configured in .gitconfig.

Public Methods

public String getFlag ()

public boolean isFlagged ()

public static GitDiffColor valueOf (String name)

public static final GitDiffColor[] values ()