MCPcopy Index your code
hub / github.com/cli/cli / extractFileName

Function extractFileName

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

Source from the content-addressed store, hash-verified

429}
430
431func extractFileName(section string) string {
432 m := diffHeaderRegexp.FindStringSubmatch(section)
433 if m == nil {
434 return ""
435 }
436 return strings.TrimSpace(m[1] + m[2])
437}
438
439func matchesAny(name string, excludePatterns []string) bool {
440 for _, p := range excludePatterns {

Callers 1

filterDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected