Changed apply stash to pop stash
This commit is contained in:
parent
ee745bd4e0
commit
0e7a682cdb
@ -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)
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ fun GMenu(
|
||||
onClick = onStash,
|
||||
)
|
||||
MenuButton(
|
||||
title = "Apply",
|
||||
title = "Pop",
|
||||
icon = painterResource("apply_stash.svg"),
|
||||
onClick = onPopStash,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user