public enum GitHookType extends Enum<GitHookType>
| Enum Constant and Description |
|---|
APPLYPATCH_MSG
The apply patch message hook.
|
COMMIT_MSG
Commit message hook.
|
FSMONITOR_WATCHMAN
FS monitor watchman hook.
|
P4_CHANGELIST
P4 changelist hook.
|
P4_POST_CHANGELIST
P4 post changelist hook.
|
P4_PRE_SUBMIT
P4 pre submit hook.
|
P4_PREPARE_CHANGELIST
P4 prepare changelist hook.
|
POST_APPLYPATCH
Post apply patch hook.
|
POST_CHECKOUT
Post checkout hook.
|
POST_COMMIT
Post commit hook.
|
POST_INDEX_CHANGE
Post index change hook.
|
POST_MERGE
The post merge hook.
|
POST_RECEIVE
Post receive hook.
|
POST_REWRITE
Post rewrite hook.
|
POST_UPDATE
The post update hook.
|
PRE_APPLYPATCH
The pre apply patch hook.
|
PRE_AUTO_GC
Pre auto gc hook.
|
PRE_COMMIT
Pre commit hook.
|
PRE_MERGE_COMMIT
Pre merge commit hook.
|
PRE_PUSH
Pre push hook.
|
PRE_REBASE
Pre rebase hook.
|
PRE_RECEIVE
Pre receive hook.
|
PREPARE_COMMIT_MSG
Prepare commit message.
|
PROC_RECEIVE
Proc receive hook.
|
PUSH_TO_CHECKOUT
Push to checkout hook.
|
REFERENCE_TRANSACTION
Reference transaction hook.
|
SENDEMAIL_VALIDATE
Send email validate hook.
|
UPDATE
The update hook.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHookFileName()
Gets the pre-specified name of the file for hooks of this type.
|
static boolean |
isValidHookName(String filename)
Takes a string filename and returns true if, and only if, the string is a valid hook name.
|
static GitHookType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GitHookType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GitHookType PRE_COMMIT
public static final GitHookType PRE_MERGE_COMMIT
public static final GitHookType PRE_PUSH
public static final GitHookType PRE_REBASE
public static final GitHookType COMMIT_MSG
public static final GitHookType PREPARE_COMMIT_MSG
public static final GitHookType UPDATE
public static final GitHookType POST_UPDATE
public static final GitHookType APPLYPATCH_MSG
public static final GitHookType PRE_APPLYPATCH
public static final GitHookType POST_MERGE
public static final GitHookType POST_APPLYPATCH
public static final GitHookType POST_COMMIT
public static final GitHookType POST_CHECKOUT
public static final GitHookType PRE_RECEIVE
public static final GitHookType PROC_RECEIVE
public static final GitHookType POST_RECEIVE
public static final GitHookType REFERENCE_TRANSACTION
public static final GitHookType PUSH_TO_CHECKOUT
public static final GitHookType PRE_AUTO_GC
public static final GitHookType POST_REWRITE
public static final GitHookType SENDEMAIL_VALIDATE
public static final GitHookType FSMONITOR_WATCHMAN
public static final GitHookType P4_CHANGELIST
public static final GitHookType P4_PREPARE_CHANGELIST
public static final GitHookType P4_POST_CHANGELIST
public static final GitHookType P4_PRE_SUBMIT
public static final GitHookType POST_INDEX_CHANGE
public static GitHookType[] values()
for (GitHookType c : GitHookType.values()) System.out.println(c);
public static GitHookType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getHookFileName()
public static boolean isValidHookName(String filename)
filename - the filename to check.Copyright © 2023. All rights reserved.