Prevent combinations of options such as --all with --include

Previously such nonsensical combinations always treated the matching option
as if it didn't match.

For now, made find --branch refuse matching options that need a
filename, because one is not provided to them in a way they'll use.
There's an open bug report to support it, but making it error out is
better than the old behavior of not finding what it was asked to.

Also, made --mimetype combined with eg --all work, by looking at the
object file when operating on keys.
This commit is contained in:
Joey Hess 2021-03-01 16:10:42 -04:00
parent 7a089f05b2
commit 25e4ab7e81
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 37 additions and 10 deletions

View file

@ -0,0 +1,10 @@
[[!comment format=mdwn
username="joey"
subject="""comment 2"""
date="2021-03-01T19:50:36Z"
content="""
I've guarded against all the other bad combos mentioned.
find --branch --unlocked/--locked will be rejected now due to that change,
but can be implemented later the way I discussed above.
"""]]