MCPcopy Index your code
hub / github.com/changesets/changesets / reset

Function reset

packages/release-utils/src/gitUtils.ts:53–59  ·  view source on GitHub ↗
(
  pathSpec: string,
  mode: "hard" | "soft" | "mixed" = "hard",
  cwd: string
)

Source from the content-addressed store, hash-verified

51};
52
53export const reset = async (
54 pathSpec: string,
55 mode: "hard" | "soft" | "mixed" = "hard",
56 cwd: string
57) => {
58 await execWithOutput("git", ["reset", `--${mode}`, pathSpec], { cwd });
59};
60
61export const commitAll = async (message: string, cwd: string) => {
62 await execWithOutput("git", ["add", "."], {

Callers

nothing calls this directly

Calls 1

execWithOutputFunction · 0.90

Tested by

no test coverage detected