public enum PushDefault extends java.lang.Enum<PushDefault>
| Enum Constant and Description |
|---|
CURRENT
Push the current branch to update a branch with the same name on the
receiving end.
|
MATCHING
Push all branches having the same name on both ends.
|
NOTHING
Do not push anything (error out) unless a refspec is explicitly given.
|
SIMPLE
Refuse to push if the upstream branch’s name is different from the local
one.
|
UPSTREAM
Push the current branch back to the branch whose changes are usually
integrated into the current branch.
|
| Modifier and Type | Method and Description |
|---|---|
static PushDefault |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PushDefault[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PushDefault NOTHING
public static final PushDefault CURRENT
public static final PushDefault UPSTREAM
public static final PushDefault SIMPLE
public static final PushDefault MATCHING
public static PushDefault[] values()
for (PushDefault c : PushDefault.values()) System.out.println(c);
public static PushDefault valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2018 fuin.org (Germany). All Rights Reserved.