1
0
mirror of https://github.com/mbollmann/fishpkgs.git synced 2024-10-27 20:34:02 +00:00
mbollmann_fishpkgs/functions/git_is_repo.fish
2021-06-02 11:51:44 +02:00

6 lines
172 B
Fish

function git_is_repo -d "Test if the current directory is a Git repository"
if not command git rev-parse --git-dir > /dev/null 2>/dev/null
return 1
end
end