Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support git-annex-lookupkey #12

Open
thkoch2001 opened this issue Apr 19, 2020 · 1 comment
Open

support git-annex-lookupkey #12

thkoch2001 opened this issue Apr 19, 2020 · 1 comment

Comments

@thkoch2001
Copy link

Instead of relying on parsing the key from the blob, just use git-annex.

@alpernebbi
Copy link
Owner

I'm assuming you're referring to the part in AnnexedFileTree. I can't use lookupkey there because the file tree might not exist on-disk, and there isn't a lookupkey --branch=treeish option like e.g. find does.

Even if that's added, I expect doing it in python would be faster until we have a lookupkey --batch --json that can take not only {"file":"path"} but {"branch":"ref", "file":"path"}, as we would have to run a process for every lookup otherwise (or at best for every tree object with a lookupkey --batch --branch=treeish) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants