Package org.eclipse.jgit.gitrepo
Class RepoCommand.RemoteFile
- java.lang.Object
-
- org.eclipse.jgit.gitrepo.RepoCommand.RemoteFile
-
- Enclosing class:
- RepoCommand
public static final class RepoCommand.RemoteFile extends Object
Read-only view of contents and file mode (i.e. permissions) for a file in a remote repository.- Since:
- 5.2
-
-
Constructor Summary
Constructors Constructor Description RemoteFile(byte[] contents, FileMode fileMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getContents()
Contents of the file.FileMode
getFileMode()
-
-
-
Method Detail
-
getContents
@NonNull public byte[] getContents()
Contents of the file.Callers who receive this reference must not modify its contents (as it can point to internal cached data).
- Returns:
- Raw contents of the file. Do not modify it.
-
-