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

Function parseGitHeaderCopyFrom

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

Source from the content-addressed store, hash-verified

346}
347
348func parseGitHeaderCopyFrom(f *File, line, defaultName string) (err error) {
349 f.IsCopy = true
350 f.OldName, _, err = parseName(line, 0, 0)
351 return
352}
353
354func parseGitHeaderCopyTo(f *File, line, defaultName string) (err error) {
355 f.IsCopy = true

Callers

nothing calls this directly

Calls 1

parseNameFunction · 0.85

Tested by

no test coverage detected