Skip to content

Improve implementation of annex content file discovery #9

@achilleas-k

Description

@achilleas-k

func NewAFile(annexpath, repopath, Ofilename string, APFileC []byte) (*AFile, error) {

The NewAFile() function infers the key from the path in the contents of the file and then runs a search through the directory tree to find the matching filename. We should instead use the new ContentLocation function:

func ContentLocation(repo *git.Repository, key string) (string, error) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions