MCPcopy Create free account
hub / github.com/KartikLabhshetwar/lazycommit / git

Function git

tests/utils.ts:34–38  ·  view source on GitHub ↗
(command: string, args?: string[], options?: Options)

Source from the content-addressed store, hash-verified

32
33export const createGit = async (cwd: string) => {
34 const git = (command: string, args?: string[], options?: Options) =>
35 execa('git', [command, ...(args || [])], {
36 cwd,
37 ...options,
38 });
39
40 await git('init', [
41 // In case of different default branch name

Callers 3

createGitFunction · 0.85
git-hook.tsFile · 0.85
commits.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected