public interface GitPlugin
| 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) |
static boolean |
hasChangedFiles(File dir)
Returns true if the given directory has modified files
|
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) |
static boolean hasChangedFiles(File dir)
boolean stashAndCheckoutMaster(File dir)
void revertChanges(File dir) throws IOException
IOExceptionCopyright © 2076–2017 Red Hat. All rights reserved.