|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.api.GitCommand<RevCommit>
org.eclipse.jgit.api.StashCreateCommand
public class StashCreateCommand
Command class to stash changes in the working directory and index in a commit.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jgit.api.GitCommand |
|---|
repo |
| Constructor Summary | |
|---|---|
StashCreateCommand(Repository repo)
Create a command to stash changes in the working directory and index |
|
| Method Summary | |
|---|---|
RevCommit |
call()
Stash the contents on the working directory and index in separate commits and reset to the current HEAD commit. |
StashCreateCommand |
setIndexMessage(java.lang.String message)
Set the message used when committing index changes |
StashCreateCommand |
setPerson(PersonIdent person)
Set the person to use as the author and committer in the commits made |
StashCreateCommand |
setRef(java.lang.String ref)
Set the reference to update with the stashed commit id |
StashCreateCommand |
setWorkingDirectoryMessage(java.lang.String message)
Set the message used when committing working directory changes |
| Methods inherited from class org.eclipse.jgit.api.GitCommand |
|---|
checkCallable, getRepository, setCallable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StashCreateCommand(Repository repo)
repo - | Method Detail |
|---|
public StashCreateCommand setIndexMessage(java.lang.String message)
The message will be formatted with the current branch, abbreviated commit id, and short commit message when used.
message -
thispublic StashCreateCommand setWorkingDirectoryMessage(java.lang.String message)
The message will be formatted with the current branch, abbreviated commit id, and short commit message when used.
message -
thispublic StashCreateCommand setPerson(PersonIdent person)
person -
thispublic StashCreateCommand setRef(java.lang.String ref)
This value defaults to Constants.R_STASH
ref -
this
public RevCommit call()
throws GitAPIException
call in interface java.util.concurrent.Callable<RevCommit>call in class GitCommand<RevCommit>GitAPIException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||