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) {
|
suspend fun popStash(git: Git) = withContext(Dispatchers.IO) {
|
||||||
// val firstStash = app.git.stashList().call().firstOrNull() ?: return@withContext
|
|
||||||
|
|
||||||
git
|
git
|
||||||
.stashApply()
|
.stashApply()
|
||||||
// .setStashRef(firstStash.)
|
|
||||||
.call()
|
.call()
|
||||||
|
|
||||||
// app.git.stashDrop()
|
git.stashDrop()
|
||||||
// .setStashRef(firstStash.)
|
.call()
|
||||||
|
|
||||||
loadStashList(git)
|
loadStashList(git)
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ fun GMenu(
|
|||||||
onClick = onStash,
|
onClick = onStash,
|
||||||
)
|
)
|
||||||
MenuButton(
|
MenuButton(
|
||||||
title = "Apply",
|
title = "Pop",
|
||||||
icon = painterResource("apply_stash.svg"),
|
icon = painterResource("apply_stash.svg"),
|
||||||
onClick = onPopStash,
|
onClick = onPopStash,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user