Class GitCacheDirectory


  • public class GitCacheDirectory
    extends Object
    Class used to handle git cache directory operations.
    • Method Detail

      • getCacheDirectoryRoot

        @NotNull
        public static @NotNull File getCacheDirectoryRoot​(@NotNull
                                                          @NotNull File workingDirectory)
        Parameters:
        workingDirectory -
        Returns:
        the root for all git cache directories.
      • getCacheDirectory

        @NotNull
        public static @NotNull File getCacheDirectory​(@NotNull
                                                      @NotNull File workingDirectory,
                                                      @NotNull
                                                      @NotNull GitRepositoryAccessData repositoryData)
      • getCachePath

        @NotNull
        public static @NotNull Path getCachePath​(@NotNull
                                                 @NotNull File workingDirectory,
                                                 @NotNull
                                                 @NotNull GitRepositoryAccessData repositoryData)
      • getCacheLock

        public static io.atlassian.util.concurrent.ManagedLock getCacheLock​(@NotNull
                                                                            @NotNull File cache)