@techmely/utils
Version:
Collection of helpful JavaScript / TypeScript utils
11 lines (8 loc) • 353 B
JavaScript
import { execCommand } from './chunk-TRN6YLKQ.mjs';
import './chunk-UFOKMNUE.mjs';
import './chunk-NYLAFCGV.mjs';
// src/getCurrentGitBranch.ts
async function getCurrentGitBranch() {
return await execCommand("git", ["tag", "--points-at", "HEAD"]) || await execCommand("git", ["rev-parse", "--abbrev-ref", "HEAD"]);
}
export { getCurrentGitBranch };