File: __fish_is_git_repository.fish

package info (click to toggle)
fish 3.1.2-3%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 38,672 kB
  • sloc: ansic: 80,259; cpp: 47,069; javascript: 17,087; sh: 6,163; python: 3,429; makefile: 669; perl: 367; objc: 78; xml: 18
file content (3 lines) | stat: -rw-r--r-- 168 bytes parent folder | download | duplicates (4)
1
2
3
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