MCPcopy Index your code
hub / github.com/coderoad/coderoad-vscode / stashAllFiles

Function stashAllFiles

src/services/git/index.ts:8–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6export const gitOrigin = 'coderoad'
7
8const stashAllFiles = async (): Promise<never | void> => {
9 // stash files including untracked (eg. newly created file)
10 const { stderr } = await exec({ command: `git stash --include-untracked` })
11 if (stderr) {
12 logger(`Error: ${stderr}`)
13 throw new Error('Error stashing files')
14 }
15}
16
17const cherryPickCommit = async (commit: string, count = 0): Promise<never | void> => {
18 if (count > 1) {

Callers 1

cherryPickCommitFunction · 0.85

Calls 2

execFunction · 0.90
loggerFunction · 0.50

Tested by

no test coverage detected