# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Exceptions
- Deprecated Methods

Deprecated Classes
Class and Description
org.eclipse.jgit.lib.FileTreeEntry To look up information about a single path, use `TreeWalk.forPath(Repository, String, org.eclipse.jgit.revwalk.RevTree)`. To lookup information about multiple paths at once, use a `TreeWalk` and obtain the current entry's information from its getter methods.
org.eclipse.jgit.lib.GitlinkTreeEntry To look up information about a single path, use `TreeWalk.forPath(Repository, String, org.eclipse.jgit.revwalk.RevTree)`. To lookup information about multiple paths at once, use a `TreeWalk` and obtain the current entry's information from its getter methods.
org.eclipse.jgit.lib.SymlinkTreeEntry To look up information about a single path, use `TreeWalk.forPath(Repository, String, org.eclipse.jgit.revwalk.RevTree)`. To lookup information about multiple paths at once, use a `TreeWalk` and obtain the current entry's information from its getter methods.
org.eclipse.jgit.lib.Tree To look up information about a single path, use `TreeWalk.forPath(Repository, String, org.eclipse.jgit.revwalk.RevTree)`. To lookup information about multiple paths at once, use a `TreeWalk` and obtain the current entry's information from its getter methods.
org.eclipse.jgit.lib.TreeEntry To look up information about a single path, use `TreeWalk.forPath(Repository, String, org.eclipse.jgit.revwalk.RevTree)`. To lookup information about multiple paths at once, use a `TreeWalk` and obtain the current entry's information from its getter methods.

Deprecated Exceptions
Exceptions and Description
org.eclipse.jgit.transport.UploadPackMayNotContinueException use `ServiceMayNotContinueException` instead.

Deprecated Methods
Method and Description
org.eclipse.jgit.merge.Merger.getBaseCommit(int, int) use `Merger.getBaseCommitId()` instead, as that does not require walking the commits again
org.eclipse.jgit.treewalk.WorkingTreeIterator.isModified(DirCacheEntry, boolean) Use `WorkingTreeIterator.isModified(DirCacheEntry, boolean, ObjectReader)`
org.eclipse.jgit.internal.storage.pack.PackWriter.preparePack(ProgressMonitor, Collection<? extends ObjectId>, Collection<? extends ObjectId>) to be removed in 2.0; use the Set version of this method.
org.eclipse.jgit.internal.storage.pack.PackWriter.preparePack(ProgressMonitor, ObjectWalk, Collection<? extends ObjectId>, Collection<? extends ObjectId>) to be removed in 2.0; use the Set version of this method.
org.eclipse.jgit.internal.storage.file.WindowCache.reconfigure(WindowCacheConfig) use `cfg.install()` to avoid internal reference.