MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / removePath

Function removePath

commands/command_untrack.go:59–68  ·  view source on GitHub ↗
(path string, args []string)

Source from the content-addressed store, hash-verified

57}
58
59func removePath(path string, args []string) bool {
60 withoutCurrentDir := tools.TrimCurrentPrefix(path)
61 for _, t := range args {
62 if withoutCurrentDir == escapeAttrPattern(tools.TrimCurrentPrefix(t)) {
63 return true
64 }
65 }
66
67 return false
68}
69
70func init() {
71 RegisterCommand("untrack", untrackCommand, nil)

Callers 1

untrackCommandFunction · 0.85

Calls 2

TrimCurrentPrefixFunction · 0.92
escapeAttrPatternFunction · 0.85

Tested by

no test coverage detected