|
org.netbeans.libs.git/1 1.1 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
See:
Description
| Git Client Library | |
|---|---|
| org.netbeans.libs.git | |
| org.netbeans.libs.git.progress | |
The library is a facade over a java implementation of Git client - JGit. Because JGit does not provide a full-featured high-level API (on the level of whole git commands), this library groups the JGit low-level API into bigger pieces and exports the API in the form of full Git commandline commands (e.g. status, commit, checkout, reset, etc.). GitlibraryAPI Allows clients to work with local Git repositories and invoke a set of Git commands affecting a Git repository.
GitClient are provided by GitRepository.
GitRepository represents a concrete local Git repository and is always bound to a specific folder.
The correct way to achieve this is to call GitRepository.getInstance(repositoryRoot).createClient().
GitClient mapped to a Git command accepts an instance of
ProgressMonitor as a parameter. Through an instance of this class you can cancel a command, an implementation of such a command periodically calls
isCanceled and interrupts its work if the method returns true.
Package org.netbeans.libs.git.progress offers
a set of listeners extending the NotificationListener interface which you can attach to an instance of
GitClient via addNotificationListener()
and through which you can closely monitor building of the result.
|
|
The sources for the module are in the NetBeans Mercurial repositories.
No additional setting is needed, direct dependency is enough.
Read more about the implementation in the answers to architecture questions.
|
org.netbeans.libs.git/1 1.1 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||