A walker that has been released can be used again, but may need to be released after the subsequent usage.
194195196197198199200201202203204
.get().failureUpdatingTrackingRef, u.getLocalName(), err.getMessage()), err); } } } finally { walk.release(); } if (!fetchHeadUpdates.isEmpty()) { try { updateFETCH_HEAD(result);
161162163164165166167168169170171
throw new JGitInternalException( MessageFormat.format( JGitText.get().exceptionCaughtDuringExecutionOfRevertCommand, e), e); } finally { revWalk.release(); } return newHead; } /**
362363364365366367368369370371372
JGitText.get().exceptionCaughtDuringExecutionOfCherryPickCommand, e), e); } finally { revWalk.release(); } return new CherryPickResult(newHead, cherryPickedRefs); }
325326327328329330331332333334335
MessageFormat.format( JGitText.get().exceptionCaughtDuringExecutionOfMergeCommand, e), e); } finally { if (revWalk != null) revWalk.release(); } } private void checkParameters() throws InvalidMergeHeadsException { if (squash && fastForwardMode == FastForwardMode.NO_FF) {
162163164165166167168169170171172
JGitText.get().updatingRefFailed, refName, newTag.toString(), updateResult)); } } finally { revWalk.release(); } } finally { inserter.release(); }
261262263264265266267268269270271
.format(JGitText.get().updatingRefFailed, Constants.HEAD, commitId.toString(), rc)); } } finally { revWalk.release(); } } finally { odi.release(); } } finally {
419420421422423424425426427428429
} finally { dc.unlock(); } RevWalk rw = new RevWalk(repo); RevCommit commit = rw.parseCommit(repo.resolve(Constants.HEAD)); rw.release(); return commit; } /** * @return the commit if we had to do a commit, otherwise null
239240241242243244245246247248249
} finally { if (null != walk) { walk.release(); } reporter.endCommand(); }
157158159160161162163164165166167
} finally { if (null != walk) { walk.release(); } } } /**
163164165166167168169170171172173
{ throw new JGitFlowException(e); } finally { walk.release(); } if (behind) { throw new BranchOutOfDateException("local branch '" + branch + "' is behind the remote branch");