migrate --update gets keys
authorJoey Hess <joeyh@joeyh.name>
Thu, 7 Dec 2023 21:03:58 +0000 (17:03 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 7 Dec 2023 21:25:56 +0000 (17:25 -0400)
commit7c7c9912c1207786817e699c7d1c2a1529ca423d
treed3ddd935234e4b5f6d522b736ecd48e326f2ba2e
parentf1ce15036fbcebeb26e52e61eea44e457434f065
migrate --update gets keys

The git log is outputting the diff, but this only looks at the new
files. When we have a new file, we can get the old filename by just
replacing "new" with "old". And then use branchFileRef to refer to it
allows catting the old key.

While this does have to skip past the old files in the diff, it's still
faster than calling git diff separately.

Sponsored-by: Nicholas Golder-Manning on Patreon
Command/Log.hs
Git/Log.hs
Logs/Migrate.hs