MCPcopy Create free account
hub / github.com/antonmedv/gitmal / parseGitHeaderCopyTo

Function parseGitHeaderCopyTo

pkg/gitdiff/file_header.go:354–358  ·  view source on GitHub ↗
(f *File, line, defaultName string)

Source from the content-addressed store, hash-verified

352}
353
354func parseGitHeaderCopyTo(f *File, line, defaultName string) (err error) {
355 f.IsCopy = true
356 f.NewName, _, err = parseName(line, 0, 0)
357 return
358}
359
360func parseGitHeaderRenameFrom(f *File, line, defaultName string) (err error) {
361 f.IsRename = true

Callers

nothing calls this directly

Calls 1

parseNameFunction · 0.85

Tested by

no test coverage detected