MCPcopy Index your code
hub / github.com/21st-dev/1code / assertValidGitPath

Function assertValidGitPath

src/main/lib/git/security/path-validation.ts:193–195  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

191 * @throws PathValidationError if path is invalid
192 */
193export function assertValidGitPath(filePath: string): void {
194 validateRelativePath(filePath, { allowRoot: true });
195}

Callers 6

gitCheckoutFileFunction · 0.90
gitCheckoutFilesFunction · 0.90
gitStageFileFunction · 0.90
gitStageFilesFunction · 0.90
gitUnstageFileFunction · 0.90
gitUnstageFilesFunction · 0.90

Calls 1

validateRelativePathFunction · 0.85

Tested by

no test coverage detected