Augments .git_functions for null-checking

This commit is contained in:
William Carroll 2016-08-02 15:41:21 -04:00
parent d4ad5a153b
commit b28331b896

View file

@ -51,7 +51,9 @@ function wgcheckout {
# wgcheckout combined with a fuzzy search
function wgfcheckout {
wgcheckout $(git branch | fzf)
branchname=$(git branch | fzf)
[ ! -z "$branchname" ] && wgcheckout "$branchname" || return
}