whereused --historical
authorJoey Hess <joeyh@joeyh.name>
Wed, 14 Jul 2021 19:38:28 +0000 (15:38 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 14 Jul 2021 19:38:28 +0000 (15:38 -0400)
commitfcd1b93a7dd2d26f02f013440fb03696bf4d31e6
tree41714341453c7dfe6a4ad8edecad9becda052400
parent47d3dccf198edc4d8e4d0b6d86eec070f0f29033
whereused --historical

Does not check the reflog, but otherwise works.

It's possible for it to display something that is not an annexed file,
if a non-annexed file somehow ends up containing something that looks
like the key's name. This seems very unlikely to happen, and it would
add a lot of complexity to detect it and somehow skip over that file,
since the git log would need to either be run again, or not limited to 1
result and canceled once enough results have been read.

Also, it kind of seems ok, if a file refers to a key, to consider that
as a place the key was used, for some definition of used. So, I punted
on dealing with that. May revisit later.

Sponsored-by: Brock Spratlen on Patreon
Command/WhereUsed.hs
Git/DiffTree.hs