.dotfiles/.config/fish/functions/__git.branch_has_wip.fish

4 lines
136 B
Fish
Raw Permalink Normal View History

2024-10-21 20:46:27 +03:00
function __git.branch_has_wip -d "Returns 0 if branch has --wip--, otherwise 1"
git log -n 1 2>/dev/null | grep -qc "\-\-wip\-\-"
end