|
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.GitSource
org.ajoberstar.gradle.git.tasks.GitCommit
public class GitCommit extends GitSource
Task to commit changes to a Git repository.
Field Summary |
---|
Fields inherited from class GitSource | |
---|---|
patternSet |
Method Summary | |
---|---|
void
|
author(groovy.lang.Closure config)
Configures the author for this commit. |
void
|
commit()
Commits changes to the Git repository. |
void
|
committer(groovy.lang.Closure config)
Configures the committer for this commit. |
PersonIdent
|
getAuthor()
Gets the author for this commit. |
boolean
|
getCommitAll()
Gets whether to commit all modified and deleted files. |
PersonIdent
|
getCommitter()
Gets the committer to for this commit. |
java.lang.String
|
getMessage()
Gets the commit message to use. |
void
|
setAuthor(PersonIdent author)
Sets the author for this commit. |
void
|
setCommitAll(boolean commitAll)
Sets whether to commit all modified and deleted files. |
void
|
setCommitter(PersonIdent committer)
Sets the committer for this commit. |
void
|
setMessage(java.lang.Object message)
Sets the commit message to use. |
Methods inherited from class GitSource | |
---|---|
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getSource, include, include, include, include, setExcludes, setIncludes |
Methods inherited from class GitBase | |
---|---|
getGit, getRepoDir, setRepoPath |
Method Detail |
---|
@SuppressWarnings("rawtypes") public void author(groovy.lang.Closure config)
config
- the configuration closure
@TaskAction public void commit()
@SuppressWarnings("rawtypes") public void committer(groovy.lang.Closure config)
config
- the configuration closure
@Input @Optional public PersonIdent getAuthor()
@Input public boolean getCommitAll()
@Input @Optional public PersonIdent getCommitter()
@Input public java.lang.String getMessage()
public void setAuthor(PersonIdent author)
author
- the author
public void setCommitAll(boolean commitAll)
commitAll
- whetherh to commit all files
public void setCommitter(PersonIdent committer)
committer
- the committer
public void setMessage(java.lang.Object message)
message
- the commit message
Groovy Documentation