@Service public class GitOperationsImpl extends Object implements GitOperations
| Constructor and Description |
|---|
GitOperationsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
commitAllChanges(String message)
Triggers commit for all changes in the Git tree.
|
boolean |
isAutomaticCommit()
Check if automatic commit is enabled for successful Roo commands.
|
boolean |
isGitCommandAvailable()
Check if Git commands are available in Shell.
|
boolean |
isGitInstallationPossible()
Check if Git setup command is available in Shell.
|
void |
log(int maxHistory)
Present git log.
|
void |
push()
Trigger git push.
|
void |
reset(int noOfCommitsToRevert,
String message)
Triggers Git reset (hard).
|
void |
revertCommit(String revstr,
String message)
Trigger revert of commit with given rev string.
|
void |
revertLastCommit(String message)
Triggers revert of last commit.
|
void |
setConfig(String category,
String key,
String value)
Convenience access to the Git config (allows setting config options)
|
void |
setup()
Initial setup of git repository in target project.
|
public void commitAllChanges(String message)
GitOperationscommitAllChanges in interface GitOperationsmessage - Commit messagepublic boolean isAutomaticCommit()
GitOperationsisAutomaticCommit in interface GitOperationspublic boolean isGitCommandAvailable()
GitOperationsisGitCommandAvailable in interface GitOperationspublic boolean isGitInstallationPossible()
GitOperationsisGitInstallationPossible in interface GitOperationspublic void log(int maxHistory)
GitOperationslog in interface GitOperationspublic void push()
GitOperationspush in interface GitOperationspublic void reset(int noOfCommitsToRevert,
String message)
GitOperationsreset in interface GitOperationsnoOfCommitsToRevert - number of commits to reset (HEAD - n)message - Commit messagepublic void revertCommit(String revstr, String message)
GitOperationsrevertCommit in interface GitOperationspublic void revertLastCommit(String message)
GitOperationsrevertLastCommit in interface GitOperationsmessage - Commit messagepublic void setConfig(String category, String key, String value)
GitOperationssetConfig in interface GitOperationscategory - The Git config category.key - The config key.value - The config value.public void setup()
GitOperationssetup in interface GitOperationsCopyright © 2009–2015. All rights reserved.