Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/readme_manager/mod.ts>getBranch

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

Attempt to find the current git branch. Silently fails.

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

type

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