@techmely/utils
Version:
Collection of helpful JavaScript / TypeScript utils
21 lines (17 loc) • 466 B
JavaScript
/*!
* @techmely/utils
* Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com>
* MIT Licensed
*/
import {
execCommand
} from "./chunk-OEREUEGT.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
};