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

Function extractFileName

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

Source from the content-addressed store, hash-verified

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

Callers 1

filterDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected