credential: enable state capability

Now that we've implemented the state capability, let's send it along by
default when filling credentials so we can make use of it.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
brian m. carlson
2024-04-17 00:02:34 +00:00
committed by Junio C Hamano
parent 8470c94be3
commit 36f7d865e3
2 changed files with 11 additions and 0 deletions

View File

@ -56,6 +56,7 @@ void credential_set_all_capabilities(struct credential *c,
enum credential_op_type op_type)
{
credential_set_capability(&c->capa_authtype, op_type);
credential_set_capability(&c->capa_state, op_type);
}
int credential_match(const struct credential *want,