Moved classes to match the package name

This commit is contained in:
Abdelilah El Aissaoui 2022-09-28 01:48:34 +02:00
parent 9ec843c75a
commit 8df62ef2b7
236 changed files with 758 additions and 753 deletions

View File

@ -87,7 +87,7 @@ task("fatJarLinux", type = Jar::class) {
manifest { manifest {
attributes["Implementation-Title"] = name attributes["Implementation-Title"] = name
attributes["Implementation-Version"] = projectVersion attributes["Implementation-Version"] = projectVersion
attributes["Main-Class"] = "MainKt" attributes["Main-Class"] = "com.jetpackduba.gitnuro.MainKt"
} }
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }) { from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }) {
exclude( exclude(

View File

@ -1,6 +1,6 @@
@file:OptIn(ExperimentalComposeUiApi::class) @file:OptIn(ExperimentalComposeUiApi::class)
package app package com.jetpackduba.gitnuro
import androidx.compose.foundation.background import androidx.compose.foundation.background
import androidx.compose.foundation.layout.* import androidx.compose.foundation.layout.*
@ -23,20 +23,20 @@ import androidx.compose.ui.unit.sp
import androidx.compose.ui.window.Window import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application import androidx.compose.ui.window.application
import androidx.compose.ui.window.rememberWindowState import androidx.compose.ui.window.rememberWindowState
import app.di.DaggerAppComponent import com.jetpackduba.gitnuro.di.DaggerAppComponent
import app.extensions.preferenceValue import com.jetpackduba.gitnuro.extensions.preferenceValue
import app.extensions.toWindowPlacement import com.jetpackduba.gitnuro.extensions.toWindowPlacement
import app.logging.printLog import com.jetpackduba.gitnuro.logging.printLog
import app.preferences.AppSettings import com.jetpackduba.gitnuro.preferences.AppSettings
import app.theme.AppTheme import com.jetpackduba.gitnuro.theme.AppTheme
import app.theme.Theme import com.jetpackduba.gitnuro.theme.Theme
import app.theme.primaryTextColor import com.jetpackduba.gitnuro.theme.primaryTextColor
import app.theme.secondaryTextColor import com.jetpackduba.gitnuro.theme.secondaryTextColor
import app.ui.AppTab import com.jetpackduba.gitnuro.ui.AppTab
import app.ui.components.RepositoriesTabPanel import com.jetpackduba.gitnuro.ui.components.RepositoriesTabPanel
import app.ui.components.TabInformation import com.jetpackduba.gitnuro.ui.components.TabInformation
import app.ui.dialogs.settings.SettingsDialog import com.jetpackduba.gitnuro.ui.dialogs.settings.SettingsDialog
import app.viewmodels.SettingsViewModel import com.jetpackduba.gitnuro.viewmodels.SettingsViewModel
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.launch import kotlinx.coroutines.launch

View File

@ -1,4 +1,4 @@
package app package com.jetpackduba.gitnuro
object AppConstants { object AppConstants {
val openSourceProjects = listOf( val openSourceProjects = listOf(

View File

@ -1,6 +1,6 @@
package app package com.jetpackduba.gitnuro
import app.preferences.AppSettings import com.jetpackduba.gitnuro.preferences.AppSettings
import kotlinx.coroutines.* import kotlinx.coroutines.*
import kotlinx.coroutines.sync.Mutex import kotlinx.coroutines.sync.Mutex
import kotlinx.serialization.decodeFromString import kotlinx.serialization.decodeFromString
@ -85,6 +85,6 @@ class AppStateManager @Inject constructor(
} }
fun cancelCoroutines() { fun cancelCoroutines() {
appStateScope.cancel("Closing app") appStateScope.cancel("Closing com.jetpackduba.gitnuro.app")
} }
} }

View File

@ -1,6 +1,6 @@
package app package com.jetpackduba.gitnuro
import app.di.TabScope import com.jetpackduba.gitnuro.di.TabScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableSharedFlow import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.MutableStateFlow

View File

@ -1,6 +1,6 @@
package app package com.jetpackduba.gitnuro
import app.di.TabScope import com.jetpackduba.gitnuro.di.TabScope
import javax.inject.Inject import javax.inject.Inject
import kotlin.io.path.createTempDirectory import kotlin.io.path.createTempDirectory
import kotlin.io.path.deleteIfExists import kotlin.io.path.deleteIfExists

View File

@ -1,4 +1,4 @@
package app.credentials package com.jetpackduba.gitnuro.credentials
import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.StateFlow

View File

@ -1,4 +1,4 @@
package app.credentials package com.jetpackduba.gitnuro.credentials
import org.apache.sshd.client.channel.ChannelExec import org.apache.sshd.client.channel.ChannelExec
import org.apache.sshd.client.session.ClientSession import org.apache.sshd.client.session.ClientSession

View File

@ -1,4 +1,4 @@
package app.credentials package com.jetpackduba.gitnuro.credentials
import org.apache.sshd.client.SshClient import org.apache.sshd.client.SshClient
import org.apache.sshd.client.future.ConnectFuture import org.apache.sshd.client.future.ConnectFuture
@ -63,11 +63,11 @@ class GRemoteSession @Inject constructor(
val filePasswordProvider = val filePasswordProvider =
FilePasswordProvider { _, _, _ -> FilePasswordProvider { _, _, _ ->
credentialsStateManager.updateState(CredentialsState.SshCredentialsRequested) CredentialsStateManager.updateState(CredentialsState.SshCredentialsRequested)
var credentials = credentialsStateManager.currentCredentialsState var credentials = CredentialsStateManager.currentCredentialsState
while (credentials is CredentialsState.CredentialsRequested) { while (credentials is CredentialsState.CredentialsRequested) {
credentials = credentialsStateManager.currentCredentialsState credentials = CredentialsStateManager.currentCredentialsState
} }
if (credentials !is CredentialsState.SshCredentialsAccepted) if (credentials !is CredentialsState.SshCredentialsAccepted)

View File

@ -1,4 +1,4 @@
package app.credentials package com.jetpackduba.gitnuro.credentials
import org.eclipse.jgit.transport.CredentialsProvider import org.eclipse.jgit.transport.CredentialsProvider
import org.eclipse.jgit.transport.RemoteSession import org.eclipse.jgit.transport.RemoteSession

View File

@ -1,4 +1,4 @@
package app.credentials package com.jetpackduba.gitnuro.credentials
import org.eclipse.jgit.transport.CredentialItem import org.eclipse.jgit.transport.CredentialItem
import org.eclipse.jgit.transport.CredentialsProvider import org.eclipse.jgit.transport.CredentialsProvider
@ -23,11 +23,11 @@ class HttpCredentialsProvider : CredentialsProvider() {
} }
override fun get(uri: URIish?, vararg items: CredentialItem?): Boolean { override fun get(uri: URIish?, vararg items: CredentialItem?): Boolean {
credentialsStateManager.updateState(CredentialsState.HttpCredentialsRequested) CredentialsStateManager.updateState(CredentialsState.HttpCredentialsRequested)
var credentials = credentialsStateManager.currentCredentialsState var credentials = CredentialsStateManager.currentCredentialsState
while (credentials is CredentialsState.CredentialsRequested) { while (credentials is CredentialsState.CredentialsRequested) {
credentials = credentialsStateManager.currentCredentialsState credentials = CredentialsStateManager.currentCredentialsState
} }
if (credentials is CredentialsState.HttpCredentialsAccepted) { if (credentials is CredentialsState.HttpCredentialsAccepted) {

View File

@ -1,8 +1,8 @@
package app.di package com.jetpackduba.gitnuro.di
import app.App import com.jetpackduba.gitnuro.App
import app.AppStateManager import com.jetpackduba.gitnuro.AppStateManager
import app.preferences.AppSettings import com.jetpackduba.gitnuro.preferences.AppSettings
import dagger.Component import dagger.Component
import javax.inject.Singleton import javax.inject.Singleton

View File

@ -1,7 +1,7 @@
package app.di package com.jetpackduba.gitnuro.di
import app.di.modules.NetworkModule import com.jetpackduba.gitnuro.di.modules.NetworkModule
import app.ui.components.TabInformation import com.jetpackduba.gitnuro.ui.components.TabInformation
import dagger.Component import dagger.Component
@TabScope @TabScope

View File

@ -1,4 +1,4 @@
package app.di package com.jetpackduba.gitnuro.di
import javax.inject.Scope import javax.inject.Scope

View File

@ -1,6 +1,6 @@
package app.di.modules package com.jetpackduba.gitnuro.di.modules
import app.updates.UpdatesService import com.jetpackduba.gitnuro.updates.UpdatesService
import dagger.Provides import dagger.Provides
import retrofit2.Retrofit import retrofit2.Retrofit
import retrofit2.converter.scalars.ScalarsConverterFactory import retrofit2.converter.scalars.ScalarsConverterFactory

View File

@ -1,3 +1,3 @@
package app.exceptions package com.jetpackduba.gitnuro.exceptions
abstract class GitnuroException(msg: String) : RuntimeException(msg) abstract class GitnuroException(msg: String) : RuntimeException(msg)

View File

@ -1,3 +1,3 @@
package app.exceptions package com.jetpackduba.gitnuro.exceptions
class InvalidDirectoryException(msg: String) : GitnuroException(msg) class InvalidDirectoryException(msg: String) : GitnuroException(msg)

View File

@ -1,3 +1,3 @@
package app.exceptions package com.jetpackduba.gitnuro.exceptions
class InvalidMessageException(msg: String) : GitnuroException(msg) class InvalidMessageException(msg: String) : GitnuroException(msg)

View File

@ -1,3 +1,3 @@
package app.exceptions package com.jetpackduba.gitnuro.exceptions
class InvalidRemoteUrlException(msg: String) : GitnuroException(msg) class InvalidRemoteUrlException(msg: String) : GitnuroException(msg)

View File

@ -1,3 +1,3 @@
package app.exceptions package com.jetpackduba.gitnuro.exceptions
class MissingDiffEntryException(msg: String) : GitnuroException(msg) class MissingDiffEntryException(msg: String) : GitnuroException(msg)

View File

@ -1,3 +1,3 @@
package app.exceptions package com.jetpackduba.gitnuro.exceptions
class RebaseCancelledException(msg: String) : GitnuroException(msg) class RebaseCancelledException(msg: String) : GitnuroException(msg)

View File

@ -1,3 +1,3 @@
package app.exceptions package com.jetpackduba.gitnuro.exceptions
class UncommitedChangesDetectedException(msg: String) : GitnuroException(msg) class UncommitedChangesDetectedException(msg: String) : GitnuroException(msg)

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import java.text.DateFormat import java.text.DateFormat
import java.time.LocalDate import java.time.LocalDate

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import androidx.compose.material.MaterialTheme import androidx.compose.material.MaterialTheme
import androidx.compose.material.icons.Icons import androidx.compose.material.icons.Icons
@ -6,11 +6,11 @@ import androidx.compose.material.icons.filled.*
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.graphics.vector.ImageVector
import app.git.workspace.StatusEntry import com.jetpackduba.gitnuro.git.workspace.StatusEntry
import app.git.workspace.StatusType import com.jetpackduba.gitnuro.git.workspace.StatusType
import app.theme.addFile import com.jetpackduba.gitnuro.theme.addFile
import app.theme.conflictFile import com.jetpackduba.gitnuro.theme.conflictFile
import app.theme.modifyFile import com.jetpackduba.gitnuro.theme.modifyFile
import org.eclipse.jgit.diff.DiffEntry import org.eclipse.jgit.diff.DiffEntry
val DiffEntry.parentDirectoryPath: String val DiffEntry.parentDirectoryPath: String

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import java.io.ByteArrayOutputStream import java.io.ByteArrayOutputStream
import java.io.InputStream import java.io.InputStream

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
fun Int.toStringWithSpaces(charactersCount: Int): String { fun Int.toStringWithSpaces(charactersCount: Int): String {
val numberStr = this.toString() val numberStr = this.toString()

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import androidx.compose.foundation.lazy.LazyListState import androidx.compose.foundation.lazy.LazyListState

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
fun <T> List<T>?.countOrZero(): Int { fun <T> List<T>?.countOrZero(): Int {
return this?.count() ?: 0 return this?.count() ?: 0

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import androidx.compose.foundation.background import androidx.compose.foundation.background
import androidx.compose.foundation.clickable import androidx.compose.foundation.clickable

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import org.eclipse.jgit.diff.RawText import org.eclipse.jgit.diff.RawText
import java.io.ByteArrayOutputStream import java.io.ByteArrayOutputStream

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import org.eclipse.jgit.lib.Constants import org.eclipse.jgit.lib.Constants
import org.eclipse.jgit.lib.ObjectIdRef import org.eclipse.jgit.lib.ObjectIdRef

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import org.eclipse.jgit.lib.RepositoryState import org.eclipse.jgit.lib.RepositoryState

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import org.eclipse.jgit.lib.Repository import org.eclipse.jgit.lib.Repository
import org.eclipse.jgit.revwalk.RevCommit import org.eclipse.jgit.revwalk.RevCommit

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import kotlinx.coroutines.sync.Semaphore import kotlinx.coroutines.sync.Semaphore

View File

@ -1,6 +1,6 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import app.logging.printLog import com.jetpackduba.gitnuro.logging.printLog
import java.io.IOException import java.io.IOException
import java.util.* import java.util.*

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import kotlinx.coroutines.* import kotlinx.coroutines.*

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import org.eclipse.jgit.api.Status import org.eclipse.jgit.api.Status

View File

@ -1,4 +1,4 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import java.math.BigInteger import java.math.BigInteger
import java.security.MessageDigest import java.security.MessageDigest

View File

@ -1,6 +1,6 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import app.logging.printLog import com.jetpackduba.gitnuro.logging.printLog
import java.awt.Desktop import java.awt.Desktop
import java.awt.Toolkit import java.awt.Toolkit
import java.awt.datatransfer.Clipboard import java.awt.datatransfer.Clipboard

View File

@ -1,7 +1,7 @@
package app.extensions package com.jetpackduba.gitnuro.extensions
import androidx.compose.ui.window.WindowPlacement import androidx.compose.ui.window.WindowPlacement
import app.preferences.WindowsPlacementPreference import com.jetpackduba.gitnuro.preferences.WindowsPlacementPreference
private val windowPlacementFloating = WindowsPlacementPreference(0) private val windowPlacementFloating = WindowsPlacementPreference(0)

View File

@ -1,4 +1,4 @@
package app.git package com.jetpackduba.gitnuro.git
import org.eclipse.jgit.transport.RemoteRefUpdate import org.eclipse.jgit.transport.RemoteRefUpdate
import java.io.File import java.io.File

View File

@ -1,9 +1,9 @@
package app.git package com.jetpackduba.gitnuro.git
import app.extensions.filePath import com.jetpackduba.gitnuro.extensions.filePath
import app.extensions.toStatusType import com.jetpackduba.gitnuro.extensions.toStatusType
import app.git.workspace.StatusEntry import com.jetpackduba.gitnuro.git.workspace.StatusEntry
import app.git.workspace.StatusType import com.jetpackduba.gitnuro.git.workspace.StatusType
import org.eclipse.jgit.diff.DiffEntry import org.eclipse.jgit.diff.DiffEntry
sealed class DiffEntryType { sealed class DiffEntryType {

View File

@ -1,7 +1,7 @@
package app.git package com.jetpackduba.gitnuro.git
import app.extensions.systemSeparator import com.jetpackduba.gitnuro.extensions.systemSeparator
import app.logging.printLog import com.jetpackduba.gitnuro.logging.printLog
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableSharedFlow import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.SharedFlow import kotlinx.coroutines.flow.SharedFlow
@ -100,7 +100,7 @@ class FileChangesWatcher @Inject constructor() {
} }
private fun isGitMessageFile(repoPath: String, fullPathOfFileChanged: String): Boolean { private fun isGitMessageFile(repoPath: String, fullPathOfFileChanged: String): Boolean {
val gitDir = "$repoPath$systemSeparator.git${systemSeparator}" val gitDir = "$repoPath$systemSeparator.git$systemSeparator"
return fullPathOfFileChanged == "${gitDir}COMMIT_EDITMSG" || return fullPathOfFileChanged == "${gitDir}COMMIT_EDITMSG" ||
fullPathOfFileChanged == "${gitDir}MERGE_MSG" fullPathOfFileChanged == "${gitDir}MERGE_MSG"
} }

View File

@ -1,7 +1,7 @@
package app.git package com.jetpackduba.gitnuro.git
import app.TempFilesManager import com.jetpackduba.gitnuro.TempFilesManager
import app.extensions.systemSeparator import com.jetpackduba.gitnuro.extensions.systemSeparator
import org.eclipse.jgit.diff.ContentSource import org.eclipse.jgit.diff.ContentSource
import org.eclipse.jgit.diff.DiffEntry import org.eclipse.jgit.diff.DiffEntry
import org.eclipse.jgit.diff.RawText import org.eclipse.jgit.diff.RawText

View File

@ -1,10 +1,10 @@
package app.git package com.jetpackduba.gitnuro.git
import app.ErrorsManager import com.jetpackduba.gitnuro.ErrorsManager
import app.di.TabScope import com.jetpackduba.gitnuro.di.TabScope
import app.extensions.delayedStateChange import com.jetpackduba.gitnuro.extensions.delayedStateChange
import app.newErrorNow import com.jetpackduba.gitnuro.newErrorNow
import app.ui.SelectedItem import com.jetpackduba.gitnuro.ui.SelectedItem
import kotlinx.coroutines.* import kotlinx.coroutines.*
import kotlinx.coroutines.flow.* import kotlinx.coroutines.flow.*
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git

View File

@ -1,4 +1,4 @@
package app.git package com.jetpackduba.gitnuro.git
import org.eclipse.jgit.revwalk.RevCommit import org.eclipse.jgit.revwalk.RevCommit

View File

@ -1,6 +1,6 @@
package app.git.author package com.jetpackduba.gitnuro.git.author
import app.models.AuthorInfo import com.jetpackduba.gitnuro.models.AuthorInfo
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git

View File

@ -1,6 +1,6 @@
package app.git.author package com.jetpackduba.gitnuro.git.author
import app.models.AuthorInfo import com.jetpackduba.gitnuro.models.AuthorInfo
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git

View File

@ -1,7 +1,7 @@
package app.git.branches package com.jetpackduba.gitnuro.git.branches
import app.extensions.isBranch import com.jetpackduba.gitnuro.extensions.isBranch
import app.extensions.simpleName import com.jetpackduba.gitnuro.extensions.simpleName
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.CreateBranchCommand import org.eclipse.jgit.api.CreateBranchCommand

View File

@ -1,4 +1,4 @@
package app.git.branches package com.jetpackduba.gitnuro.git.branches
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.branches package com.jetpackduba.gitnuro.git.branches
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.branches package com.jetpackduba.gitnuro.git.branches
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.branches package com.jetpackduba.gitnuro.git.branches
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.branches package com.jetpackduba.gitnuro.git.branches
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.branches package com.jetpackduba.gitnuro.git.branches
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git
import org.eclipse.jgit.lib.Ref import org.eclipse.jgit.lib.Ref

View File

@ -1,4 +1,4 @@
package app.git.branches package com.jetpackduba.gitnuro.git.branches
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,6 +1,6 @@
package app.git.branches package com.jetpackduba.gitnuro.git.branches
import app.exceptions.UncommitedChangesDetectedException import com.jetpackduba.gitnuro.exceptions.UncommitedChangesDetectedException
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git

View File

@ -1,6 +1,6 @@
package app.git.diff package com.jetpackduba.gitnuro.git.diff
import app.git.DiffEntryType import com.jetpackduba.gitnuro.git.DiffEntryType
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git

View File

@ -1,4 +1,4 @@
package app.git.diff package com.jetpackduba.gitnuro.git.diff
import javax.inject.Inject import javax.inject.Inject
import kotlin.math.abs import kotlin.math.abs

View File

@ -1,6 +1,6 @@
package app.git.diff package com.jetpackduba.gitnuro.git.diff
import app.extensions.fullData import com.jetpackduba.gitnuro.extensions.fullData
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git

View File

@ -1,10 +1,10 @@
package app.git.diff package com.jetpackduba.gitnuro.git.diff
import app.exceptions.MissingDiffEntryException import com.jetpackduba.gitnuro.exceptions.MissingDiffEntryException
import app.extensions.isMerging import com.jetpackduba.gitnuro.extensions.isMerging
import app.git.DiffEntryType import com.jetpackduba.gitnuro.git.DiffEntryType
import app.git.branches.GetCurrentBranchUseCase import com.jetpackduba.gitnuro.git.branches.GetCurrentBranchUseCase
import app.git.repository.GetRepositoryStateUseCase import com.jetpackduba.gitnuro.git.repository.GetRepositoryStateUseCase
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git

View File

@ -1,4 +1,4 @@
package app.git.diff package com.jetpackduba.gitnuro.git.diff
data class Hunk(val header: String, val lines: List<Line>) data class Hunk(val header: String, val lines: List<Line>)

View File

@ -1,8 +1,8 @@
package app.git.diff package com.jetpackduba.gitnuro.git.diff
import app.extensions.lineAt import com.jetpackduba.gitnuro.extensions.lineAt
import app.git.EntryContent import com.jetpackduba.gitnuro.git.EntryContent
import app.git.RawFileManager import com.jetpackduba.gitnuro.git.RawFileManager
import org.eclipse.jgit.diff.* import org.eclipse.jgit.diff.*
import org.eclipse.jgit.lib.Repository import org.eclipse.jgit.lib.Repository
import org.eclipse.jgit.patch.FileHeader import org.eclipse.jgit.patch.FileHeader

View File

@ -1,4 +1,4 @@
package app.git.graph package com.jetpackduba.gitnuro.git.graph
import org.eclipse.jgit.internal.JGitText import org.eclipse.jgit.internal.JGitText
import org.eclipse.jgit.lib.AnyObjectId import org.eclipse.jgit.lib.AnyObjectId

View File

@ -1,4 +1,4 @@
package app.git.graph package com.jetpackduba.gitnuro.git.graph
const val INVALID_LANE_POSITION = -1 const val INVALID_LANE_POSITION = -1

View File

@ -1,4 +1,4 @@
package app.git.graph package com.jetpackduba.gitnuro.git.graph
import org.eclipse.jgit.lib.AnyObjectId import org.eclipse.jgit.lib.AnyObjectId
import org.eclipse.jgit.lib.Ref import org.eclipse.jgit.lib.Ref

View File

@ -1,4 +1,4 @@
package app.git.graph package com.jetpackduba.gitnuro.git.graph
import org.eclipse.jgit.errors.MissingObjectException import org.eclipse.jgit.errors.MissingObjectException
import org.eclipse.jgit.internal.JGitText import org.eclipse.jgit.internal.JGitText

View File

@ -1,4 +1,4 @@
package app.git.graph package com.jetpackduba.gitnuro.git.graph
interface IGraphNode { interface IGraphNode {
val graphParentCount: Int val graphParentCount: Int

View File

@ -1,4 +1,4 @@
package app.git.graph package com.jetpackduba.gitnuro.git.graph
import org.eclipse.jgit.lib.ObjectId import org.eclipse.jgit.lib.ObjectId

View File

@ -1,4 +1,4 @@
package app.git.log package com.jetpackduba.gitnuro.git.log
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.log package com.jetpackduba.gitnuro.git.log
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.log package com.jetpackduba.gitnuro.git.log
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.log package com.jetpackduba.gitnuro.git.log
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,8 +1,8 @@
package app.git.log package com.jetpackduba.gitnuro.git.log
import app.git.graph.GraphCommitList import com.jetpackduba.gitnuro.git.graph.GraphCommitList
import app.git.graph.GraphWalk import com.jetpackduba.gitnuro.git.graph.GraphWalk
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ensureActive import kotlinx.coroutines.ensureActive
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.log package com.jetpackduba.gitnuro.git.log
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.log package com.jetpackduba.gitnuro.git.log
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.rebase package com.jetpackduba.gitnuro.git.rebase
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.rebase package com.jetpackduba.gitnuro.git.rebase
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.rebase package com.jetpackduba.gitnuro.git.rebase
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,6 +1,6 @@
package app.git.rebase package com.jetpackduba.gitnuro.git.rebase
import app.exceptions.UncommitedChangesDetectedException import com.jetpackduba.gitnuro.exceptions.UncommitedChangesDetectedException
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git

View File

@ -1,6 +1,6 @@
package app.git.rebase package com.jetpackduba.gitnuro.git.rebase
import app.exceptions.UncommitedChangesDetectedException import com.jetpackduba.gitnuro.exceptions.UncommitedChangesDetectedException
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git

View File

@ -1,4 +1,4 @@
package app.git.rebase package com.jetpackduba.gitnuro.git.rebase
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,6 +1,6 @@
package app.git.rebase package com.jetpackduba.gitnuro.git.rebase
import app.exceptions.UncommitedChangesDetectedException import com.jetpackduba.gitnuro.exceptions.UncommitedChangesDetectedException
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git

View File

@ -1,6 +1,6 @@
package app.git.remote_operations package com.jetpackduba.gitnuro.git.remote_operations
import app.git.CloneStatus import com.jetpackduba.gitnuro.git.CloneStatus
import kotlinx.coroutines.CancellationException import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.awaitClose import kotlinx.coroutines.channels.awaitClose

View File

@ -1,8 +1,8 @@
package app.git.remote_operations package com.jetpackduba.gitnuro.git.remote_operations
import app.git.branches.DeleteBranchUseCase import com.jetpackduba.gitnuro.git.branches.DeleteBranchUseCase
import app.git.isRejected import com.jetpackduba.gitnuro.git.isRejected
import app.git.statusMessage import com.jetpackduba.gitnuro.git.statusMessage
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git
import org.eclipse.jgit.lib.Ref import org.eclipse.jgit.lib.Ref
import org.eclipse.jgit.transport.RefSpec import org.eclipse.jgit.transport.RefSpec

View File

@ -1,4 +1,4 @@
package app.git.remote_operations package com.jetpackduba.gitnuro.git.remote_operations
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,7 +1,7 @@
package app.git.remote_operations package com.jetpackduba.gitnuro.git.remote_operations
import app.credentials.GSessionManager import com.jetpackduba.gitnuro.credentials.GSessionManager
import app.credentials.HttpCredentialsProvider import com.jetpackduba.gitnuro.credentials.HttpCredentialsProvider
import org.eclipse.jgit.transport.HttpTransport import org.eclipse.jgit.transport.HttpTransport
import org.eclipse.jgit.transport.SshTransport import org.eclipse.jgit.transport.SshTransport
import org.eclipse.jgit.transport.Transport import org.eclipse.jgit.transport.Transport

View File

@ -1,4 +1,4 @@
package app.git.remote_operations package com.jetpackduba.gitnuro.git.remote_operations
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,7 +1,7 @@
package app.git.remote_operations package com.jetpackduba.gitnuro.git.remote_operations
import app.extensions.remoteName import com.jetpackduba.gitnuro.extensions.remoteName
import app.extensions.simpleName import com.jetpackduba.gitnuro.extensions.simpleName
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git

View File

@ -1,7 +1,7 @@
package app.git.remote_operations package com.jetpackduba.gitnuro.git.remote_operations
import app.git.isRejected import com.jetpackduba.gitnuro.git.isRejected
import app.git.statusMessage import com.jetpackduba.gitnuro.git.statusMessage
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git

View File

@ -1,9 +1,9 @@
package app.git.remote_operations package com.jetpackduba.gitnuro.git.remote_operations
import app.extensions.remoteName import com.jetpackduba.gitnuro.extensions.remoteName
import app.extensions.simpleName import com.jetpackduba.gitnuro.extensions.simpleName
import app.git.isRejected import com.jetpackduba.gitnuro.git.isRejected
import app.git.statusMessage import com.jetpackduba.gitnuro.git.statusMessage
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git

View File

@ -1,4 +1,4 @@
package app.git.remotes package com.jetpackduba.gitnuro.git.remotes
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.remotes package com.jetpackduba.gitnuro.git.remotes
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.remotes package com.jetpackduba.gitnuro.git.remotes
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.remotes package com.jetpackduba.gitnuro.git.remotes
import org.eclipse.jgit.lib.Ref import org.eclipse.jgit.lib.Ref
import org.eclipse.jgit.transport.RemoteConfig import org.eclipse.jgit.transport.RemoteConfig

View File

@ -1,4 +1,4 @@
package app.git.remotes package com.jetpackduba.gitnuro.git.remotes
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.repository package com.jetpackduba.gitnuro.git.repository
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.repository package com.jetpackduba.gitnuro.git.repository
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.repository package com.jetpackduba.gitnuro.git.repository
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

View File

@ -1,4 +1,4 @@
package app.git.repository package com.jetpackduba.gitnuro.git.repository
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext

Some files were not shown because too many files have changed in this diff Show More