feat(picker.git): git_log, git_log_file, git_log_line now do git_checkout as confirm. Closes #722

This commit is contained in:
Folke Lemaitre 2025-01-23 19:18:20 +01:00
parent 14f16ceb5d
commit e6fb5381a9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 6 additions and 3 deletions

View file

@ -167,7 +167,7 @@ M.git_log = {
finder = "git_log",
format = "git_log",
preview = "git_show",
confirm = "close",
confirm = "git_checkout",
}
---@type snacks.picker.git.log.Config
@ -177,7 +177,7 @@ M.git_log_file = {
preview = "git_show",
current_file = true,
follow = true,
confirm = "close",
confirm = "git_checkout",
}
---@type snacks.picker.git.log.Config
@ -187,7 +187,7 @@ M.git_log_line = {
preview = "git_show",
current_line = true,
follow = true,
confirm = "close",
confirm = "git_checkout",
}
M.git_status = {