public class GitCommand
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GitCommand.GitResponse
contains the exit code and messages.
|
Constructor and Description |
---|
GitCommand(java.io.File pwd) |
Modifier and Type | Method and Description |
---|---|
GitCommand.GitResponse |
commit(java.io.File script,
java.lang.String msg) |
GitCommand.GitResponse |
diff(java.io.File f)
query for the differences in the file.
|
GitCommand.GitResponse |
pull()
pull from the upstream repository
|
GitCommand.GitResponse |
push()
pull from the upstream repository
|
public GitCommand.GitResponse pull() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public GitCommand.GitResponse push() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public GitCommand.GitResponse diff(java.io.File f) throws java.io.IOException, java.lang.InterruptedException
f
- the file.java.io.IOException
java.lang.InterruptedException
in QDataSet
public GitCommand.GitResponse commit(java.io.File script, java.lang.String msg) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException