dotfiles/.config/fish/functions/git_feature_branch_prepend.fish

10 lines
248 B
Fish
Raw Normal View History

2024-12-15 22:46:38 +00:00
function git_feature_branch_prepend -d 'Detect prepend of feature branches of git repository'
command git rev-parse --git-dir &>/dev/null || return
if string match -q '*/feat/*' (git show-ref)
echo feat
return
end
echo feature
end