public interface GitOperations
| 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 noOfCommitsToReset,
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.
|
void commitAllChanges(String message)
message - Commit messageboolean isAutomaticCommit()
boolean isGitCommandAvailable()
boolean isGitInstallationPossible()
void log(int maxHistory)
maxHistory - void push()
void reset(int noOfCommitsToReset,
String message)
noOfCommitsToReset - number of commits to reset (HEAD - n)message - Commit messagevoid revertCommit(String revstr, String message)
revstr - message - void revertLastCommit(String message)
message - Commit messagevoid setConfig(String category, String key, String value)
category - The Git config category.key - The config key.value - The config value.void setup()
Copyright © 2009–2015. All rights reserved.