diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index 94f75fd..8bad968 100755 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -184,6 +184,7 @@ forgit::rebase() { forgit::checkout::branch() { forgit::inside_work_tree || return 1 + [[ $# -ne 0 ]] && { git checkout -b "$*"; return $?; } local cmd preview opts cmd="git branch --color=always --verbose --all --format=\"%(if:equals=HEAD)%(refname:strip=3)%(then)%(else)%(refname:short)%(end)\" $* $forgit_emojify | sed '/^$/d'" preview="git log {} --graph --pretty=format:'%C(auto)%h%d %s %C(black)%C(bold)%cr%Creset' --color=always --abbrev-commit --date=relative"