git completions installed

This commit is contained in:
Ivan Golikov 2024-12-15 23:46:38 +01:00
parent 6678a31ae7
commit 8855304904
7 changed files with 474 additions and 1 deletions

View file

@ -0,0 +1,10 @@
function git_develop_branch -d 'Detect name of develop branch of current git repository'
command git rev-parse --git-dir &>/dev/null || return
for branch in dev devel development
if command git show-ref -q --verify refs/heads/$branch
echo $branch
return
end
end
echo develop
end