|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.DefaultTask
org.ajoberstar.gradle.git.tasks.GitBase
org.ajoberstar.gradle.git.tasks.GitReset
public class GitReset extends GitBase
Task to reset the current HEAD of a local Git repository to the specified state.
Method Summary | |
---|---|
java.lang.Object
|
getMode()
Gets the reset mode. |
java.util.List
|
getPaths()
Gets the paths to reset. |
java.lang.String
|
getRef()
Gets the ref to reset. |
void
|
paths(java.lang.Object... resetPaths)
Adds paths to be reset. |
void
|
reset()
Reset the changes as configured. |
void
|
setMode(java.lang.Object mode)
Sets the reset mode |
void
|
setPaths(java.util.List resetPaths)
Sets the paths for the reset command. |
void
|
setRef(java.lang.Object ref)
Sets the ref to reset. |
Methods inherited from class GitBase | |
---|---|
getGit, getRepoDir, setRepoPath |
Method Detail |
---|
@Option al public public java.lang.Object getMode()
public public java.util.List getPaths()
public public java.lang.String getRef()
public void paths(java.lang.Object... resetPaths)
resetPaths
- the paths to be reset
tion public public void reset()
public void setMode(java.lang.Object mode)
mode
- the reset mode specification. Must be
one of the following values:
ssWarnings("unchecked") public public void setPaths(java.util.List resetPaths)
As per Git's reset command manual, no path should be added if the mode property has been set.
resetPaths
- the paths to be reset
public void setRef(java.lang.Object ref)
ref
- the ref to reset
Groovy Documentation