| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private PersonIdent | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | StashCreateCommand(Repository
a repo)org. object.Create a command to stash changes in the working directory and index |
| Modifier and Type | Method and Description |
|---|---|
| public RevCommit | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| private CommitBuilder | |
| private Ref | |
| private RevCommit | |
| public StashCreateCommand | Returns: thiswhether to include untracked files in the stash includeUntracked)Whether to include untracked files in the stash. |
| public StashCreateCommand | Returns: thisthe stash message message)Set the message used when committing index changes The message will be formatted with the current branch, abbreviated commit id, and short commit message when used. |
| public StashCreateCommand | Returns: thisthe person)org. of the person who
creates the stash.Set the person to use as the author and committer in the commits made |
| public StashCreateCommand | Returns: thisthe name of the ref)Ref to updateSet the reference to update with the stashed commit id If null, no reference is updated
This value defaults to |
| public StashCreateCommand | Returns: thisthe working directory message message)Set the message used when committing working directory changes The message will be formatted with the current branch, abbreviated commit id, and short commit message when used. |
| private void |
| includeUntracked | back to summary |
|---|---|
| private boolean includeUntracked | |
| indexMessage | back to summary |
|---|---|
| private String indexMessage | |
| MSG_INDEX | back to summary |
|---|---|
| private static final String MSG_INDEX | |
| MSG_UNTRACKED | back to summary |
|---|---|
| private static final String MSG_UNTRACKED | |
| MSG_WORKING_DIR | back to summary |
|---|---|
| private static final String MSG_WORKING_DIR | |
| person | back to summary |
|---|---|
| private PersonIdent person | |
| ref | back to summary |
|---|---|
| private String ref | |
| workingDirectoryMessage | back to summary |
|---|---|
| private String workingDirectoryMessage | |
| StashCreateCommand | back to summary |
|---|---|
| public StashCreateCommand(Repository repo) Create a command to stash changes in the working directory and index
| |
| call | back to summary |
|---|---|
| public RevCommit call() throws GitAPIException Implements abstract org. Implements java. Doc from org. Computes a result, or throws an exception if unable to do so. Execute the command Stash the contents on the working directory and index in separate commits and reset to the current HEAD commit.
| |
| createBuilder | back to summary |
|---|---|
| private CommitBuilder createBuilder() | |
| getHead | back to summary |
|---|---|
| private Ref getHead() throws GitAPIException | |
| parseCommit | back to summary |
|---|---|
| private RevCommit parseCommit(final ObjectReader reader, final ObjectId headId) throws IOException | |
| setIncludeUntracked | back to summary |
|---|---|
| public StashCreateCommand setIncludeUntracked(boolean includeUntracked) Whether to include untracked files in the stash.
| |
| setIndexMessage | back to summary |
|---|---|
| public StashCreateCommand setIndexMessage(String message) Set the message used when committing index changes The message will be formatted with the current branch, abbreviated commit id, and short commit message when used.
| |
| setPerson | back to summary |
|---|---|
| public StashCreateCommand setPerson(PersonIdent person) Set the person to use as the author and committer in the commits made
| |
| setRef | back to summary |
|---|---|
| public StashCreateCommand setRef(String ref) Set the reference to update with the stashed commit id If null, no reference is updated
This value defaults to
| |
| setWorkingDirectoryMessage | back to summary |
|---|---|
| public StashCreateCommand setWorkingDirectoryMessage(String message) Set the message used when committing working directory changes The message will be formatted with the current branch, abbreviated commit id, and short commit message when used.
| |
| updateStashRef | back to summary |
|---|---|
| private void updateStashRef(ObjectId commitId, PersonIdent refLogIdent, String refLogMessage) throws IOException | |