@Operation('commit') class CommitOp extends java.lang.Object
Commits staged changes to the repository. Returns the new Commit.
| Type | Name and description |
|---|---|
boolean |
allCommit changes to all previously tracked files, even if they aren't staged, if true. |
boolean |
amendtrue if the previous commit should be amended with
these changes. |
Person |
authorThe person who authored the changes. |
Person |
committerThe person who committed the changes. |
java.lang.String |
messageCommit message. |
java.util.Set<java.lang.String> |
pathsOnly include these paths when committing. |
java.lang.String |
reflogCommentComment to put in the reflog. |
| Constructor and description |
|---|
CommitOp
(Repository repo) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Commit changes to all previously tracked files, even if
they aren't staged, if true.
true if the previous commit should be amended with
these changes.
The person who authored the changes. Uses the git-config
setting, if null.
The person who committed the changes. Uses the git-config
setting, if null.
Commit message.
Only include these paths when committing. null to
include all staged changes.
Comment to put in the reflog.
Groovy Documentation