org.kohsuke.github
Class GHCommit.File

java.lang.Object
  extended by org.kohsuke.github.GHCommit.File
Enclosing class:
GHCommit

public static class GHCommit.File
extends Object

A file that was modified.


Constructor Summary
GHCommit.File()
           
 
Method Summary
 URL getBlobUrl()
          URL like 'https://github.com/jenkinsci/jenkins/blob/1182e2ebb1734d0653142bd422ad33c21437f7cf/core/pom.xml' that resolves to the HTML page that describes this file.
 String getFileName()
          Just the base name and the extension without any directory name.
 int getLinesAdded()
          Number of lines added.
 int getLinesChanged()
          Number of lines added + removed.
 int getLinesDeleted()
          Number of lines removed.
 String getPatch()
          The actual change.
 URL getRawUrl()
          URL like 'https://raw.github.com/jenkinsci/jenkins/4eb17c197dfdcf8ef7ff87eb160f24f6a20b7f0e/core/pom.xml' that resolves to the actual content of the file.
 String getSha()
          [0-9a-f]{40} SHA1 checksum.
 String getStatus()
          "modified", "added", or "deleted"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GHCommit.File

public GHCommit.File()
Method Detail

getLinesChanged

public int getLinesChanged()
Number of lines added + removed.


getLinesAdded

public int getLinesAdded()
Number of lines added.


getLinesDeleted

public int getLinesDeleted()
Number of lines removed.


getStatus

public String getStatus()
"modified", "added", or "deleted"


getFileName

public String getFileName()
Just the base name and the extension without any directory name.


getPatch

public String getPatch()
The actual change.


getRawUrl

public URL getRawUrl()
URL like 'https://raw.github.com/jenkinsci/jenkins/4eb17c197dfdcf8ef7ff87eb160f24f6a20b7f0e/core/pom.xml' that resolves to the actual content of the file.


getBlobUrl

public URL getBlobUrl()
URL like 'https://github.com/jenkinsci/jenkins/blob/1182e2ebb1734d0653142bd422ad33c21437f7cf/core/pom.xml' that resolves to the HTML page that describes this file.


getSha

public String getSha()
[0-9a-f]{40} SHA1 checksum.



Copyright © 2012. All Rights Reserved.