|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.roo.addon.git.GitOperationsImpl
@Service public class GitOperationsImpl
Operations for Git addon.
| Constructor Summary | |
|---|---|
GitOperationsImpl()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GitOperationsImpl()
| Method Detail |
|---|
public void commitAllChanges(String message)
GitOperations
commitAllChanges in interface GitOperationsmessage - Commit messagepublic boolean isAutomaticCommit()
GitOperations
isAutomaticCommit in interface GitOperationspublic boolean isGitCommandAvailable()
GitOperations
isGitCommandAvailable in interface GitOperationspublic boolean isGitInstallationPossible()
GitOperations
isGitInstallationPossible in interface GitOperationspublic void log(int maxHistory)
GitOperations
log in interface GitOperationspublic void push()
GitOperations
push in interface GitOperations
public void reset(int noOfCommitsToRevert,
String message)
GitOperations
reset in interface GitOperationsnoOfCommitsToRevert - number of commits to reset (HEAD - n)message - Commit message
public void revertCommit(String revstr,
String message)
GitOperations
revertCommit in interface GitOperationspublic void revertLastCommit(String message)
GitOperations
revertLastCommit in interface GitOperationsmessage - Commit message
public void setConfig(String category,
String key,
String value)
GitOperations
setConfig in interface GitOperationscategory - The Git config category.key - The config key.value - The config value.public void setup()
GitOperations
setup in interface GitOperations
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||