org.netbeans.libs.git/1 1.1

org.netbeans.libs.git
Class GitRevisionInfo.GitFileInfo

java.lang.Object
  extended by org.netbeans.libs.git.GitRevisionInfo.GitFileInfo
Enclosing class:
GitRevisionInfo

public static final class GitRevisionInfo.GitFileInfo
extends Object

Provides information about what happened to a file between two different commits. If the file is copied or renamed between the two commits, you can get the path of the original file.


Nested Class Summary
static class GitRevisionInfo.GitFileInfo.Status
          State of the file in the second commit in relevance to the first commit.
 
Method Summary
 File getFile()
           
 File getOriginalFile()
           
 String getOriginalPath()
           
 String getRelativePath()
           
 GitRevisionInfo.GitFileInfo.Status getStatus()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRelativePath

public String getRelativePath()
Returns:
relative path of the file to the root of the repository

getOriginalPath

public String getOriginalPath()
Returns:
the relative path of the original file this file was copied or renamed from. For other statuses than COPIED or RENAMED it may be null or the same as the return value of getPath method

getStatus

public GitRevisionInfo.GitFileInfo.Status getStatus()
Returns:
state of the file between the two commits

getFile

public File getFile()
Returns:
the file this refers to

getOriginalFile

public File getOriginalFile()
Returns:
the original file this file was copied or renamed from. For other statuses than COPIED or RENAMED it may be null or the same as the return value of getFile method

org.netbeans.libs.git/1 1.1

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.