MCPcopy
hub / github.com/semantic-release/semantic-release / gitCheckout

Function gitCheckout

test/helpers/git-utils.js:134–136  ·  view source on GitHub ↗
(branch, create, execaOptions)

Source from the content-addressed store, hash-verified

132 * @param {Object} [execaOpts] Options to pass to `execa`.
133 */
134export async function gitCheckout(branch, create, execaOptions) {
135 await execa("git", create ? ["checkout", "-b", branch] : ["checkout", branch], execaOptions);
136}
137
138/**
139 * Fetch current git repository.

Callers 8

e2e.test.jsFile · 0.90
addChannelMacroFunction · 0.90
git.test.jsFile · 0.90
expand.test.jsFile · 0.90
get-tags.test.jsFile · 0.90
gitRepoFunction · 0.85
initBareRepoFunction · 0.85

Calls

no outgoing calls

Tested by 1

addChannelMacroFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…