git-annex/doc/git-annex-get/comment_2_ce5c85afa01019afe58c79df151c65ff._comment
Joey Hess a18e40bdd7
lookupkey: Added --ref option
Sponsored-by: Joshua Antonishen on Patreon
2023-09-12 12:49:11 -04:00

12 lines
404 B
Text

[[!comment format=mdwn
username="joey"
subject="""Re: get file by branch and path in bare repository"""
date="2023-09-12T16:46:55Z"
content="""
--branch is limited to a treeish, so not a single file.
You can use `git-annex lookupkey --ref` to look up the key used by a ref to
a file, and then pass that to `git-annex get --key`
(That's a new feature I added due to you asking this question.)
"""]]