MCPcopy
hub / github.com/git-lfs/git-lfs / sanitizePattern

Function sanitizePattern

git/git.go:1555–1561  ·  view source on GitHub ↗
(pattern string)

Source from the content-addressed store, hash-verified

1553}
1554
1555func sanitizePattern(pattern string) string {
1556 if strings.HasPrefix(pattern, "/") {
1557 return pattern[1:]
1558 }
1559
1560 return pattern
1561}
1562
1563// GetFilesChanged returns a list of files which were changed, either between 2
1564// commits, or at a single commit if you only supply one argument and a blank

Callers 1

GetTrackedFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected