-
Notifications
You must be signed in to change notification settings - Fork 6
git
- GIT.GIT
- GIT.add
- GIT.branchCreate
- GIT.branchDelete
- GIT.branchList
- GIT.branchRename
- GIT.checkout
- GIT.clone
- GIT.close
- GIT.commit
- GIT.fetch
- GIT.getJavaGit
- GIT.init
- GIT.open
- GIT.pull
- GIT.push
- GIT.remove
GIT.GIT(aDirectory, aUser, aPassword)
Creates a GIT object instance to access a GIT repository on the aDirectory provided. Optionally you can provide also a login and password for remote repositories.
GIT.add(aFilePattern) : JavaDirCache
Adds a given aFilePattern (e.g. "some.file.txt" or "someFiles*") to the current open repository. Throws a "Repository not open" exception if the repository is not open.
GIT.branchCreate(aBranchName)
Creates a branch with the provided aBranchName on the current open GIT repository.
GIT.branchDelete(aBranchName)
Deletes a branch named aBranchName from the current open GIT repository.
GIT.branchList()
Lists the name and objectId for each branch available on the current open GIT repository.
GIT.branchRename(aOldName, aNewName)
Renames aOldName branch with aNewName on the current open GIT repository.
GIT.checkout(aPath, aBranchName) : JavaRef
Checkouts the current GIT repository to aPath. Optionally you can provide aBranchName to checkout a specific branch.
GIT.clone(aURL, aDirectory, cloneAll, aBranchName)
Clones aURL GIT repository to the aDirectory provided. Optionally, if you want all branches cloned you can indicate that with cloneAll = true. If don't want all branches cloned but a specific one you can indicate it with aBranchName.
GIT.close()
Closes the current open GIT repository.
GIT.commit(aMessage, aName, anEmail) : JavaRevCommit
Commits the current open GIT repository with aMessage provided. Throws an exception if not possible. Optionally you can also provide aName and anEmail.
GIT.fetch(aRemote)
Performs a fetch command on the current open GIT repository. Optionally you can provide aRemote.
GIT.getJavaGit() : JavaGit
Returns the internal Java GIT object.
GIT.init(aDirectory)
Initializes a GIT repository on the aDirectory provided.
GIT.open(aDirectory)
Opens a GIT repository on the aDirectory provided.
GIT.pull()
Performs a pull command on the current opened GIT repository.
GIT.push()
Performs a push command on the current opened GIT repository.
GIT.remove(aFilePattern)
Removes a given aFilePattern (e.g. "some.file.txt" or "someFiles*") from the current open repository. Throws an exception if not possible.