org.netbeans.libs.git
Class GitRevisionInfo.GitFileInfo
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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