Groovy Documentation

org.ajoberstar.gradle.git.tasks
[Java] Class GitCommit

java.lang.Object
  org.gradle.api.DefaultTask
      org.ajoberstar.gradle.git.tasks.GitBase
          org.ajoberstar.gradle.git.tasks.GitCommit

public class GitCommit
extends GitBase

Task to commit changes to a Git repository.

Since:
0.1.0


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 GitBase
getGit, getRepoDir, setRepoPath
 

Method Detail

author

ssWarnings("rawtypes") 
	public
public void author(groovy.lang.Closure config)
Configures the author for this commit. A PersonIdent is passed to the closure.
Parameters:
config - the configuration closure


commit

tion
	public
public void commit()
Commits changes to the Git repository.


committer

ssWarnings("rawtypes") 
	public
public void committer(groovy.lang.Closure config)
Configures the committer for this commit. A PersonIdent is passed to the closure.
Parameters:
config - the configuration closure


getAuthor

@Input
	@Option
al
	public
public PersonIdent getAuthor()
Gets the author for this commit.
Returns:
the author


getCommitAll

@Input
	public
public boolean getCommitAll()
Gets whether to commit all modified and deleted files. New files will not be affected.
Returns:
whether to commit all files


getCommitter

@Input
	@Option
al
	public
public PersonIdent getCommitter()
Gets the committer to for this commit.
Returns:
the committer


getMessage

@Input
	public
public java.lang.String getMessage()
Gets the commit message to use.
Returns:
the commit message to use


setAuthor

public void setAuthor(PersonIdent author)
Sets the author for this commit.
Parameters:
author - the author


setCommitAll

public void setCommitAll(boolean commitAll)
Sets whether to commit all modified and deleted files. New files will not be affected.
Parameters:
commitAll - whetherh to commit all files


setCommitter

public void setCommitter(PersonIdent committer)
Sets the committer for this commit.
Parameters:
committer - the committer


setMessage

public void setMessage(java.lang.Object message)
Sets the commit message to use.
Parameters:
message - the commit message


 

Groovy Documentation