| Modifier and Type | Field and Description |
|---|---|
| private final FileModeCache | |
| private final WorkingTreeOptions | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | Checkout(Repository
the repo)Repository to check out fromCreates a new |
| public | Checkout(Repository
the repo, WorkingTreeOptions options)Repository to check out fromCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkout(DirCacheEntry
DirCacheEntry to check outCheckoutMetadata to use for CR/LF handling and
smudge filteringObjectReader to usethe git path of the entry, if known already; otherwise
gitPath)null and it's read from the entry itselfChecks out the file given by the |
| public void | checkoutGitlink(DirCacheEntry
DirCacheEntry to check outthe git path of the entry, if known already; otherwise
gitPath)null and it's read from the entry itselfChecks out the gitlink given by the |
| public WorkingTreeOptions | Returns: theWorkingTreeOptionsRetrieves the |
| public void | safeCreateParentDirectory(String
of the file to be written gitPath, File directory in which the file shall be placed, assumed to be the
parent of the parentDir, boolean gitPathwhether to delete a possibly existing file at
makeSpace)parentDirEnsure that the given parent directory exists, and cache the information that gitPath refers to a file. |
| public Checkout | Returns: thiswhether to delete such directories recursively recursive)Defines whether directories that are in the way of the file to be checked out shall be deleted recursively. |
| cache | back to summary |
|---|---|
| private final FileModeCache cache | |
| options | back to summary |
|---|---|
| private final WorkingTreeOptions options | |
| recursiveDelete | back to summary |
|---|---|
| private boolean recursiveDelete | |
| Checkout | back to summary |
|---|---|
| public Checkout(Repository repo) Creates a new
| |
| Checkout | back to summary |
|---|---|
| public Checkout(Repository repo, WorkingTreeOptions options) Creates a new
| |
| checkout | back to summary |
|---|---|
| public void checkout(DirCacheEntry entry, DirCacheCheckout. Checks out the file given by the
| |
| checkoutGitlink | back to summary |
|---|---|
| public void checkoutGitlink(DirCacheEntry entry, String gitPath) throws IOException Checks out the gitlink given by the
| |
| getWorkingTreeOptions | back to summary |
|---|---|
| public WorkingTreeOptions getWorkingTreeOptions() Retrieves the
| |
| safeCreateParentDirectory | back to summary |
|---|---|
| public void safeCreateParentDirectory(String gitPath, File parentDir, boolean makeSpace) throws IOException Ensure that the given parent directory exists, and cache the information that gitPath refers to a file.
| |
| setRecursiveDeletion | back to summary |
|---|---|
| public Checkout setRecursiveDeletion(boolean recursive) Defines whether directories that are in the way of the file to be checked out shall be deleted recursively.
| |