MCPcopy Create free account
hub / github.com/cli/cli / extractFileName

Function extractFileName

pkg/cmd/pr/diff/diff.go:402–408  ·  view source on GitHub ↗
(section string)

Source from the content-addressed store, hash-verified

400}
401
402func extractFileName(section string) string {
403 m := diffHeaderRegexp.FindStringSubmatch(section)
404 if m == nil {
405 return ""
406 }
407 return strings.TrimSpace(m[1] + m[2])
408}
409
410func matchesAny(name string, excludePatterns []string) bool {
411 for _, p := range excludePatterns {

Callers 1

filterDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected