|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQGit
An interface to GIT distributed revision control system.
Method Summary | |
---|---|
void |
add(Object files)
Adds file or files to the list of files staged for the next commit. |
void |
add(String filePattern,
boolean update)
Adds file or files to the list of files staged for the next commit. |
void |
clone(String folder,
String url,
String branch)
Clones a repository into a new directory. |
void |
commit(Object files,
Object username,
Object email,
String comment)
This method commits changes in the specified file or folder. |
void |
commit(Object username,
Object email,
String comment)
This method records changes to the repository |
void |
fetch()
Downloads objects and refs from one or more other repositories. |
AQRevision[] |
getHistory(String filename)
Returns the file's complete revision history. |
AQRevision[] |
getHistory(String filename,
int count)
Returns the file's revision history. |
AQRevision |
getRevision(String filename)
Returns the file revision. |
byte[] |
getRevisionContents(String filename,
Object revision)
Returns the binary contents of the specified revision. |
void |
init(String folder,
boolean bare)
Creates an empty git repository or reinitialize an existing one. |
void |
merge(String ref)
Performs a very basic merge operation, which allows only one argument. |
void |
pull()
Incorporates changes from a remote repository into the current branch. |
void |
setVerbose(boolean verbose)
Sets the amount of diagnostic messages sent to the debugger console. |
void |
setWorkspace(String path)
Sets workspace folder. |
Method Detail |
---|
void setVerbose(boolean verbose)
verbose
- (Default value - true).void setWorkspace(String path)
path
- Workspace path.void commit(Object files, Object username, Object email, String comment) throws Exception
files
- A file name, or a javascript array of file namesusername
- A String
or a AQOpaqueObject
containing the user name.email
- A String
or a AQOpaqueObject
containing the user email address.comment
-
Exception
void commit(Object username, Object email, String comment) throws Exception
username
- A String
or a AQOpaqueObject
containing the user name.email
- A String
or a AQOpaqueObject
containing the user email address.comment
-
Exception
void add(Object files) throws Exception
files
- A file name, or a javascript array of file names
Exception
void add(String filePattern, boolean update) throws Exception
filePattern
- File to add content from. Also a leading directory name (e.g. dir to add dir/file1 and dir/file2) can be given to add all files in the directory, recursively. Fileglobs (e.g. *.c) are not yet supported.update
- If set to true, the command only matches filepattern against already tracked files in the index rather than the working tree. That means that it will never stage new files, but that it will stage modified new contents of tracked files and that it will remove files from the index if the corresponding files in the working tree have been removed. In contrast to the git command line a filepattern must exist also if update is set to true as there is no concept of a working directory here.
Exception
AQRevision getRevision(String filename) throws Exception
filename
- Workspace file name.
Exception
AQRevision[] getHistory(String filename) throws Exception
filename
- Workspace file name.
Exception
AQRevision[] getHistory(String filename, int count) throws Exception
filename
- Workspace file name.count
- Maximum number of revisions to return.
Exception
byte[] getRevisionContents(String filename, Object revision) throws Exception
filename
- Workspace file name.revision
- An AQRevision
object or a SHA-1 hash of a commit, obtained via
AQRevision.getRevision()
Exception
void merge(String ref) throws Exception
ref
- A reference to a commit which is merged with the current head.
Exception
void clone(String folder, String url, String branch) throws Exception
folder
- Destination folder.url
- Repository URL.branch
- (Optional) branch name. An empty branch name (or null) selects the repository HEAD.
Exception
void fetch() throws Exception
Exception
void pull() throws Exception
Exception
void init(String folder, boolean bare) throws Exception
folder
- bare
- When true, creates a bare repository.
Exception
|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |