Skip to main content
Module

x/is_git/mod.ts>isGit

Whether the filepath is a git repository.
Latest
function isGit
import { isGit } from "https://deno.land/x/is_git@v0.1.1/mod.ts";

Return true if the file path is a git repository synchronously.

Requires the --allow-read flag.

Parameters

optional
filepath = [UNSUPPORTED]

default is Deno.cwd(), the current working directory.

Returns

Promise<boolean>