]> dgit.raspbian.org Git - git-annex.git/commit
better key matching with a regexp
authorJoey Hess <joeyh@joeyh.name>
Wed, 14 Jul 2021 20:28:07 +0000 (16:28 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 14 Jul 2021 20:31:17 +0000 (16:31 -0400)
commit274d2380c7a7fe537bbebf77d9bbc682df9fb257
treefd0a34a49fa1ff6e556316105b395ff59d43d603
parent7a46bb1b28b40a692fd5943873beaa0ac3aad087
better key matching with a regexp

Handles keys that are substrings of other keys, as well as pointer files
that contain a newline after the key.

Note that -S does not match regexp, while -G does by default. Docs are
not clear, determined experimentally. The only other difference in
changing to -G is that if a file used to contain the key and changed
in some way, while still containing the key, -G will match and -S would
not. So eg, annex links that git annex fix rewrites will match, and
files that change lock status will match. Which is an improvement anyway.

Sponsored-by: Jochen Bartl on Patreon
Command/WhereUsed.hs
doc/bugs/whereused_false_match_on_longer_key.mdwn