/** {@inheritDoc} */ public void submoduleUpdate(boolean recursive, String reference) throws GitException, InterruptedException { submoduleUpdate().recursive(recursive).ref(reference).execute(); } /** {@inheritDoc} */
/** {@inheritDoc} */ public void checkoutBranch(String branch, String ref) throws GitException, InterruptedException { checkout().ref(ref).branch(branch).deleteBranchIfExist(true).execute(); }
/** {@inheritDoc} */ public void submoduleUpdate(boolean recursive) throws GitException, InterruptedException { submoduleUpdate().recursive(recursive).execute(); } /** {@inheritDoc} */
/** * {@inheritDoc} * * @param url a {@link org.eclipse.jgit.transport.URIish} object. * @param refspecs a {@link java.util.List} object. * @throws hudson.plugins.git.GitException if any. * @throws java.lang.InterruptedException if any. */ @Override public void fetch(URIish url, List<RefSpec> refspecs) throws GitException, InterruptedException { fetch_().from(url, refspecs).execute(); }
/** {@inheritDoc} */ public void setRemoteUrl(String name, String url) throws GitException, InterruptedException { if (Git.USE_CLI) super.setRemoteUrl(name, url); else jgit.setRemoteUrl(name, url); }
/** {@inheritDoc} */ public boolean hasGitRepo() throws GitException, InterruptedException { return Git.USE_CLI ? super.hasGitRepo() : jgit.hasGitRepo(); }
/** {@inheritDoc} */ public boolean isCommitInRepo(ObjectId commit) throws GitException, InterruptedException { return Git.USE_CLI ? super.isCommitInRepo(commit) : jgit.isCommitInRepo(commit); }
/** {@inheritDoc} */ public <T> T withRepository(RepositoryCallback<T> callable) throws IOException, InterruptedException { try (Repository repo = getRepository()) { return callable.invoke(repo, FilePath.localChannel); } }
/** {@inheritDoc} */ public String getTagMessage(String tagName) throws GitException, InterruptedException { return Git.USE_CLI ? super.getTagMessage(tagName) : jgit.getTagMessage(tagName); }
/** {@inheritDoc} */ public Set<Branch> getBranches() throws GitException, InterruptedException { return Git.USE_CLI ? super.getBranches() : jgit.getBranches(); }
/** {@inheritDoc} */ public void submoduleUpdate(boolean recursive, boolean remoteTracking, String reference) throws GitException, InterruptedException { submoduleUpdate().recursive(recursive).remoteTracking(remoteTracking).ref(reference).execute(); } }
/** {@inheritDoc} */ public void submoduleUpdate(boolean recursive, boolean remoteTracking) throws GitException, InterruptedException { submoduleUpdate().recursive(recursive).remoteTracking(remoteTracking).execute(); } /** {@inheritDoc} */