mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-23 10:51:14 -03:00
5 lines
198 B
Fish
5 lines
198 B
Fish
# localization: skip(private)
|
|
function __fish_is_git_repository --description 'Check if the current directory is a git repository'
|
|
git rev-parse --is-inside-work-tree 2>/dev/null >/dev/null
|
|
end
|