git_config: support multiple values for same name (#7260)

* Refactor the existing git_config.py

* Support multiple values for same name
This commit is contained in:
Günther Grill 2023-12-03 09:41:34 +01:00 committed by GitHub
commit 07bac1777f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 259 additions and 56 deletions

View file

@ -0,0 +1,4 @@
minor_changes:
- "git_config - allow multiple git configs for the same name with the new ``add_mode`` option (https://github.com/ansible-collections/community.general/pull/7260)."
- "git_config - the ``after`` and ``before`` fields in the ``diff`` of the return value can be a list instead of a string in case more configs with the same key are affected (https://github.com/ansible-collections/community.general/pull/7260)."
- "git_config - when a value is unset, all configs with the same key are unset (https://github.com/ansible-collections/community.general/pull/7260)."