mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
38 lines
883 B
TOML
38 lines
883 B
TOML
[metadata]
|
|
name = "git-branch"
|
|
description = "A channel to select from git branches"
|
|
requirements = ["git"]
|
|
|
|
[source]
|
|
command = "git --no-pager branch --all --format=\"%(refname:short)\""
|
|
output = "{split: :0}"
|
|
|
|
[preview]
|
|
command = "git show -p --stat --pretty=fuller --color=always '{0}'"
|
|
|
|
[keybindings]
|
|
enter = "actions:checkout"
|
|
ctrl-d = "actions:delete"
|
|
ctrl-m = "actions:merge"
|
|
ctrl-r = "actions:rebase"
|
|
|
|
[actions.checkout]
|
|
description = "Checkout the selected branch"
|
|
command = "git checkout '{0}'"
|
|
mode = "execute"
|
|
|
|
[actions.delete]
|
|
description = "Delete the selected branch"
|
|
command = "git branch -d '{0}'"
|
|
mode = "execute"
|
|
|
|
[actions.merge]
|
|
description = "Merge the selected branch into current branch"
|
|
command = "git merge '{0}'"
|
|
mode = "execute"
|
|
|
|
[actions.rebase]
|
|
description = "Rebase current branch onto the selected branch"
|
|
command = "git rebase '{0}'"
|
|
mode = "execute"
|