dotfiles/config/fish/functions/__git.develop_branch.fish
2026-04-30 09:37:14 +02:00

8 lines
240 B
Fish

function __git.develop_branch -d "Use develop if it exists. Falls back to dev"
command git rev-parse --git-dir &>/dev/null; or return
if command git show-ref -q --verify refs/heads/develop
echo develop
else
echo dev
end
end