parent
db1467c354
commit
01b0827057
@ -89,7 +89,6 @@ fun UncommittedChanges(
|
||||
val doCommit = {
|
||||
statusViewModel.commit(commitMessage)
|
||||
onStagedDiffEntrySelected(null)
|
||||
setCommitMessage("")
|
||||
}
|
||||
|
||||
val canCommit = commitMessage.isNotEmpty() && stageStateUi.hasStagedFiles
|
||||
|
@ -395,7 +395,9 @@ class StatusViewModel @Inject constructor(
|
||||
val personIdent = getPersonIdent(git)
|
||||
|
||||
doCommitUseCase(git, commitMessage, amend, personIdent)
|
||||
|
||||
updateCommitMessage("")
|
||||
_commitMessageChangesFlow.emit("")
|
||||
_isAmend.value = false
|
||||
|
||||
positiveNotification(if (isAmend.value) "Commit amended" else "New commit created")
|
||||
|
Loading…
Reference in New Issue
Block a user