]> source.dussan.org Git - jgit.git/commit
Repository: Deprecate #peel method 35/123035/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 22 May 2018 02:27:30 +0000 (11:27 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 22 May 2018 02:49:37 +0000 (11:49 +0900)
commitf6c4a492d06e0dd345679bfba3399dabbf778f41
treef5a3a1f84d581fcdaae05350f5b1604f54559a4e
parente701c59a859e8fff46a1bc16aee7771a3a8aea8a
Repository: Deprecate #peel method

Callers should use getRefDatabase().peel(ref) instead since it
doesn't swallow the IOException.

Adapt all trivial callers to user the alternative.

DescribeCommand still uses the deprecated method and is not adapted in
this change since it will require more refactoring to add handling of
the IOException.

Change-Id: I14d4a95a5e0570548753b9fc5c03d024dc3ff832
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/RebuildRefTree.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/LogCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/TagCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/LogCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java