]> source.dussan.org Git - jgit.git/commit
Remove deprecated Repository.mapTree 64/2664/1
authorShawn O. Pearce <spearce@spearce.org>
Mon, 7 Mar 2011 20:36:48 +0000 (12:36 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 7 Mar 2011 20:36:51 +0000 (12:36 -0800)
commitef822fe3cd26c61f87a8fce6fb5ac5e7a71e6108
tree619519213d3599ff60c72033d7342cf4416cabed
parent1f57061684c83623d7d08be9044fc9cfd7b9fb54
Remove deprecated Repository.mapTree

The mapTree() routines have been deprecated for a long time, and their
sibilings for mapCommit() and mapTag() were already removed from the
main Repository API.

Remove mapTree().  Application callers who only need the tree's name
can use resolve("^{tree}") syntax to resolve to the tree ObjectId, or
fail if the input is not a tree.

Applications that want to read a tree should use DirCache or TreeWalk.

Change-Id: I85726413790fc87721271c482f6636f81baf8b82
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/exttst/org/eclipse/jgit/lib/T0007_GitIndexTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0002_TreeTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/merge/SimpleMergeTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java