lookupkey: Allow using --ref in a bare repository.

This commit is contained in:
Joey Hess 2024-08-30 10:48:10 -04:00
parent e2b7895cbc
commit 242c525659
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 22 additions and 4 deletions

View file

@ -37,3 +37,4 @@ git-annex: You cannot run this command in a bare repository.
### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
> [[fixed|done]] --[[Joey]]

View file

@ -0,0 +1,14 @@
[[!comment format=mdwn
username="joey"
subject="""comment 3"""
date="2024-08-30T14:47:41Z"
content="""
Fixed that.
It kind of seems like metadata could have an option to get the metadata for
a specific ref as well, but since it already has --branch which takes a
branch ref, adding a --ref which takes a file ref seems confusing. Maybe
--fileref? There are a decent number of other commands that also use
parseKeyOptions to support --branch/--key/--all that would also get the new
option if it were implemented.
"""]]