From 22fd618b016126607f0fb4b9353fc432539b0ccc Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Thu, 9 Nov 2023 01:34:37 +0100 Subject: [PATCH] Added TODO --- .../gitnuro/git/remote_operations/PushBranchUseCase.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/git/remote_operations/PushBranchUseCase.kt b/src/main/kotlin/com/jetpackduba/gitnuro/git/remote_operations/PushBranchUseCase.kt index d8a6d19..0a1281c 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/git/remote_operations/PushBranchUseCase.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/git/remote_operations/PushBranchUseCase.kt @@ -20,6 +20,7 @@ class PushBranchUseCase @Inject constructor( private val getTrackingBranchUseCase: GetTrackingBranchUseCase, private val appSettings: AppSettings, ) { + // TODO This use case should also set the tracking branch to the new remote branch suspend operator fun invoke(git: Git, force: Boolean, pushTags: Boolean) = withContext(Dispatchers.IO) { val currentBranch = git.repository.fullBranch val tracking = getTrackingBranchUseCase(git, git.repository.branch)