Changed apply stash to pop stash

This commit is contained in:
Abdelilah El Aissaoui 2021-10-10 03:00:09 +02:00
parent ee745bd4e0
commit 0e7a682cdb
2 changed files with 4 additions and 6 deletions

View File

@ -23,15 +23,13 @@ class StashManager @Inject constructor() {
}
suspend fun popStash(git: Git) = withContext(Dispatchers.IO) {
// val firstStash = app.git.stashList().call().firstOrNull() ?: return@withContext
git
.stashApply()
// .setStashRef(firstStash.)
.call()
// app.git.stashDrop()
// .setStashRef(firstStash.)
git.stashDrop()
.call()
loadStashList(git)
}

View File

@ -67,7 +67,7 @@ fun GMenu(
onClick = onStash,
)
MenuButton(
title = "Apply",
title = "Pop",
icon = painterResource("apply_stash.svg"),
onClick = onPopStash,
)