public static FileKey lenient(File directory, FS fs) {final File gitdir = resolve(directory, fs);return new FileKey(gitdir != null ? gitdir : directory, fs);}
public static RepositoryCache.FileKey Lenient(FilePath directory, FS fs){FilePath gitdir = Resolve(directory, fs);return new RepositoryCache.FileKey(gitdir != null ? gitdir : directory, fs);}