Package hudson.plugins.git.browser
Class GitWeb
java.lang.Object
hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
hudson.scm.RepositoryBrowser<GitChangeSet>
hudson.plugins.git.browser.GitRepositoryBrowser
hudson.plugins.git.browser.GitWeb
- All Implemented Interfaces:
ExtensionPoint
,Describable<RepositoryBrowser<?>>
,Serializable
Git Browser URLs
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetChangeSetLink
(GitChangeSet changeSet) getDiffLink
(GitChangeSet.Path path) Creates a link to the file diff.getFileLink
(GitChangeSet.Path path) Creates a link to the file.protected boolean
Determines whether a URL should be normalized Overridden in the rare case where it shouldn'tMethods inherited from class hudson.plugins.git.browser.GitRepositoryBrowser
encodeURL, getChangeSetLink, getIndexOfPath, getRepoUrl, getUrl, initialChecksAndReturnOk, validateUrl
Methods inherited from class hudson.scm.RepositoryBrowser
all, normalizeToEndWithSlash, trimHeadSlash
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
GitWeb
-
-
Method Details
-
getNormalizeUrl
protected boolean getNormalizeUrl()Description copied from class:GitRepositoryBrowser
Determines whether a URL should be normalized Overridden in the rare case where it shouldn't- Overrides:
getNormalizeUrl
in classGitRepositoryBrowser
- Returns:
- True if the URL should be normalized
-
getChangeSetLink
- Specified by:
getChangeSetLink
in classRepositoryBrowser<GitChangeSet>
- Throws:
IOException
-
getDiffLink
Creates a link to the file diff. http://[GitWeb URL]?a=blobdiff;f=[path];fp=[path];h=[dst];hp=[src];hb=[commit];hpb=[parent commit]- Specified by:
getDiffLink
in classGitRepositoryBrowser
- Parameters:
path
- affected file path- Returns:
- diff link
- Throws:
IOException
- on input or output error
-
getFileLink
Creates a link to the file. http://[GitWeb URL]?a=blob;f=[path];h=[dst, or src for deleted files];hb=[commit]- Specified by:
getFileLink
in classGitRepositoryBrowser
- Parameters:
path
- file- Returns:
- file link
- Throws:
IOException
- on input or output error
-