hudson.plugins.git
Class GitRepositoryBrowser

java.lang.Object
  extended by hudson.scm.RepositoryBrowser<GitChangeSet>
      extended by hudson.plugins.git.GitRepositoryBrowser
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>, java.io.Serializable
Direct Known Subclasses:
GitWeb

public abstract class GitRepositoryBrowser
extends hudson.scm.RepositoryBrowser<GitChangeSet>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
GitRepositoryBrowser()
           
 
Method Summary
abstract  java.net.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  java.net.URL getFileLink(GitChangeSet.Path path)
          Determines the link to a single file under Git.
 
Methods inherited from class hudson.scm.RepositoryBrowser
all, getChangeSetLink, getDescriptor, normalizeToEndWithSlash, trimHeadSlash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GitRepositoryBrowser

public GitRepositoryBrowser()
Method Detail

getDiffLink

public abstract java.net.URL getDiffLink(GitChangeSet.Path path)
                                  throws java.io.IOException
Determines the link to the diff between the version in the specified revision of GitChangeSet.Path to its previous version.

Parameters:
path - affected file path
Returns:
null if the browser doesn't have any URL for diff.
Throws:
java.io.IOException

getFileLink

public abstract java.net.URL getFileLink(GitChangeSet.Path path)
                                  throws java.io.IOException
Determines the link to a single file under Git. This page should display all the past revisions of this file, etc.

Parameters:
path - affected file path
Returns:
null if the browser doesn't have any suitable URL.
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.