MCPcopy
hub / github.com/go-git/go-git / isPathInDirectory

Function isPathInDirectory

worktree_status.go:323–325  ·  view source on GitHub ↗
(path, directory string)

Source from the content-addressed store, hash-verified

321}
322
323func isPathInDirectory(path, directory string) bool {
324 return directory == "." || strings.HasPrefix(path, directory+"/")
325}
326
327// AddWithOptions file contents to the index, updates the index using the
328// current content found in the working tree, to prepare the content staged for

Callers 1

doAddDirectoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…