Removed unnecessary IO operation to get the commit amend id
This commit is contained in:
parent
26bc7bacf1
commit
509bbf13e9
@ -360,7 +360,7 @@ class StatusViewModel @Inject constructor(
|
|||||||
rebaseInteractiveState.isCurrentStepAmenable &&
|
rebaseInteractiveState.isCurrentStepAmenable &&
|
||||||
isAmendRebaseInteractive.value
|
isAmendRebaseInteractive.value
|
||||||
) {
|
) {
|
||||||
val amendCommitId = getRebaseAmendCommitIdUseCase(git)
|
val amendCommitId = rebaseInteractiveState.commitToAmendId
|
||||||
|
|
||||||
if (!amendCommitId.isNullOrBlank()) {
|
if (!amendCommitId.isNullOrBlank()) {
|
||||||
doCommitUseCase(git, message, true, getPersonIdent(git))
|
doCommitUseCase(git, message, true, getPersonIdent(git))
|
||||||
|
Loading…
Reference in New Issue
Block a user