git:alias: Add checkout-worktree

Reuse the autoloadable function as git alias. This way
`git-checkout-worktree` as well as `git checkout-worktree` are possible.
This commit is contained in:
2022-03-31 15:21:22 +02:00
parent 9968edaf09
commit f44125937f

View File

@@ -3,6 +3,7 @@
detachedHead = off
[alias]
branches = track
checkout-worktree = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-checkout-worktree\""
filter-repo = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/git/git-filter-repo/git-filter-repo\""
fixes = log -1 --pretty=fixes
root = rev-parse --show-toplevel