This document lists changes made to the Git Library API.
Fuller descriptions of all changes can be found below (follow links).
Not all deprecations are listed here, assuming that the deprecated
APIs continue to essentially work. For a full deprecation list, please
These API specification versions may be used to indicate that a module
requires a certain API feature in order to function. For example, if you
see here a feature you need which is labelled 1.20, your
manifest should contain in its main attributes the line:
OpenIDE-Module-Module-Dependencies: org.netbeans.libs.git > 1.20
Mar 12 '13; API spec. version: 1.9; affected top-level classes:
GitClient; made by: ovrabec; issues:
Mar 11 '13; API spec. version: 1.8; affected top-level classes:
- Adding a new method GitClient.getStatus(File, String, ProgressMonitor)
allowing an API client to get statuses of local files not just against the HEAD but against
an arbitrary commit.
- Adding a new method GitClient.getStatus(File, String, String, ProgressMonitor)
allowing an API client to get modifications from the Git history. It is similar to
GitRevisionInfo.getModifications but returns file statuses between two arbitrary commits
and not just a commit and its parent.
GitRebaseResult; made by: ovrabec; issues:
Feb 6 '13; API spec. version: 1.7; made by: ovrabec
- Adding a new method GitClient.rebase delegating to the rebase command.
Git supports commit amendments, in other words modifying the last commit and changing its
commit message or modified files. Another commit method allows API clients to specify
either to amend the last commit or to make a fresh new commit on top of current HEAD.
Nov 16 '12; API spec. version: 1.5; made by: ovrabec
JGit repository normally does not close all opened file descriptors
and prevents external commands from working with the same repository.
Clients of the JGit API are supposed to call JGitRepository.close()
when they're done with the repository. We need to pass this method to the
Git Library API so when clients are done with calling all required commands
the library closes all descriptors and frees the git metadata files
for other tools.
Mar 11 '12; API spec. version: 1.0; made by: ovrabec