public abstract class GitRepositoryBrowser extends RepositoryBrowser<GitChangeSet>
ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier | Constructor and Description |
|---|---|
protected |
GitRepositoryBrowser()
Deprecated.
|
protected |
GitRepositoryBrowser(String repourl) |
| Modifier and Type | Method and Description |
|---|---|
static URL |
encodeURL(URL url) |
abstract URL |
getDiffLink(GitChangeSet.Path path)
Determines the link to the diff between the version
in the specified revision of
GitChangeSet.Path to its previous version. |
abstract URL |
getFileLink(GitChangeSet.Path path)
Determines the link to a single file under Git.
|
protected int |
getIndexOfPath(GitChangeSet.Path path)
Calculate the index of the given path in a
sorted list of affected files
|
protected boolean |
getNormalizeUrl()
Determines whether a URL should be normalized
Overridden in the rare case where it shouldn't
|
String |
getRepoUrl() |
URL |
getUrl() |
protected static boolean |
initialChecksAndReturnOk(Item project,
String cleanUrl) |
protected static boolean |
validateUrl(String url) |
all, getChangeSetLink, normalizeToEndWithSlash, trimHeadSlashgetDescriptor@Deprecated protected GitRepositoryBrowser()
protected GitRepositoryBrowser(String repourl)
public final String getRepoUrl()
public final URL getUrl() throws IOException
IOExceptionpublic abstract URL getDiffLink(GitChangeSet.Path path) throws IOException
GitChangeSet.Path to its previous version.path - affected file pathIOException - on input or output errorpublic abstract URL getFileLink(GitChangeSet.Path path) throws IOException, URISyntaxException
path - affected file pathIOException - on input or output errorURISyntaxException - on URI syntax errorprotected boolean getNormalizeUrl()
protected int getIndexOfPath(GitChangeSet.Path path) throws IOException
path - affected file pathIOException - on input or output errorpublic static URL encodeURL(URL url) throws IOException
IOExceptionprotected static boolean initialChecksAndReturnOk(Item project, String cleanUrl)
protected static boolean validateUrl(String url) throws URISyntaxException
URISyntaxExceptionCopyright © 2007–2021. All rights reserved.