T - the type of the return valuepublic abstract class AbstractRepositoryCallback<T> extends Object implements org.jenkinsci.plugins.gitclient.RepositoryCallback<T>
Repository object is accessible.| Constructor and Description |
|---|
AbstractRepositoryCallback() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAbsolutePath(File absolute)
Returns an absolute path for a given file in the Git repository, normalized using Unix path separators.
|
protected String |
getRelativePath(org.eclipse.jgit.lib.Repository repository,
String fileName)
Returns a relative path for a given absolute path with respect to the working directory of the Git repository.
|
static String |
getWorkTree(org.eclipse.jgit.lib.Repository repository)
Returns the root directory of the repository working tree.
|
public static String getWorkTree(org.eclipse.jgit.lib.Repository repository)
repository - the repositoryprotected String getRelativePath(org.eclipse.jgit.lib.Repository repository, String fileName)
repository - the repositoryfileName - absolute file nameCopyright © 2016–2019. All rights reserved.