Skip to main content
Module

x/readme_manager/git.ts>getCommit

helps manage and harmonise READMEs in many repositories with template files
Latest
variable getCommit
import { getCommit } from "https://deno.land/x/readme_manager@v3.0.0/git.ts";

Attempt to find the current git commit sha. Silently fails.

import { getCommit } from "./git.ts"
const commit = await getCommit('/path/to/git/repo', (errorMsg: string, error?: Error) => {})

type

(directory: string, error: (message: string, error?: Error) => void) => unknown