FileModes per git path.
| Modifier and Type | Class and Description |
|---|---|
| public static class | FileModeCache.
An item from a |
| Modifier and Type | Field and Description |
|---|---|
| private final Repository | |
| private final FileModeCache. |
| Access | Constructor and Description |
|---|---|
| public | FileModeCache(Repository
Repository this cache is forCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| private FileModeCache. | |
| private void | |
| public Repository | |
| public FileModeCache. | |
| public FileModeCache. | Returns: ACacheItem describing the directory, which is guaranteed
to existof a file to be written gitPath, File directory in which the file shall be placed, assumed to be the
parent of the dir, boolean gitPathwhether to remove a file that already at that name makeSpace)Ensures the given directory |
| 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. |
| repo | back to summary |
|---|---|
| private final Repository repo
| |
| root | back to summary |
|---|---|
| private final FileModeCache. | |
| FileModeCache | back to summary |
|---|---|
| public FileModeCache(Repository repo) Creates a new
| |
| add | back to summary |
|---|---|
| private FileModeCache. Records the given | |
| deleteSymlinkParent | back to summary |
|---|---|
| private void deleteSymlinkParent(FS fs, String gitPath, File workingTree) throws IOException | |
| getRepository | back to summary |
|---|---|
| public Repository getRepository() Retrieves the
| |
| getRoot | back to summary |
|---|---|
| public FileModeCache. Obtains the
| |
| safeCreateDirectory | back to summary |
|---|---|
| public FileModeCache. Ensures the given directory
| |
| 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.
| |
FileModeCache, recording information about a git
path (known from context).
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private FileMode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public FileModeCache. | |
| public FileMode | |
| public FileModeCache. | |
| public FileModeCache. | |
| pack-priv void |
| children | back to summary |
|---|---|
| private Map<String, FileModeCache. | |
| mode | back to summary |
|---|---|
| private FileMode mode
| |
| CacheItem | back to summary |
|---|---|
| public CacheItem(FileMode mode) Creates a new | |
| child | back to summary |
|---|---|
| public FileModeCache. Retrieves an immediate child of this
| |
| getMode | back to summary |
|---|---|
| public FileMode getMode() Retrieves the cached | |
| insert | back to summary |
|---|---|
| public FileModeCache. Inserts a new cached | |
| remove | back to summary |
|---|---|
| public FileModeCache. Removes the immediate child with the given name.
| |
| setMode | back to summary |
|---|---|
| pack-priv void setMode(FileMode mode) | |