Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/readme_manager/mod.ts>getCommit

helps manage and harmonise READMEs in many repositories with template files
Latest
variable getCommit
Re-export
import { getCommit } from "https://deno.land/x/readme_manager@v3.0.0/mod.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