| Constructor and Description |
|---|
GitPluginCLI(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAndCommit(File dir,
String commitComment) |
void |
clone(File dir,
String cloneUrl,
String name) |
boolean |
commitToBranch(File dir,
String branch,
String commitComment) |
void |
deleteBranch(File dir,
String localBranch) |
void |
pull(File dir,
String cloneUrl) |
boolean |
push(File dir,
String localBranch) |
void |
revertChanges(File dir) |
void |
setRemoteURL(File dir,
String remoteURL) |
boolean |
stashAndCheckoutMaster(File dir) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasChangedFilespublic GitPluginCLI(Configuration configuration)
public void setRemoteURL(File dir, String remoteURL)
setRemoteURL in interface GitPluginpublic boolean commitToBranch(File dir, String branch, String commitComment)
commitToBranch in interface GitPluginpublic void deleteBranch(File dir, String localBranch)
deleteBranch in interface GitPluginpublic boolean addAndCommit(File dir, String commitComment)
addAndCommit in interface GitPluginpublic boolean stashAndCheckoutMaster(File dir)
stashAndCheckoutMaster in interface GitPluginpublic void revertChanges(File dir) throws IOException
revertChanges in interface GitPluginIOExceptionCopyright © 2076–2017 Red Hat. All rights reserved.