Augments .git_functions for null-checking
This commit is contained in:
parent
d4ad5a153b
commit
b28331b896
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue