If you try to call set_value twice with the two different refspecs above, only the last one will get set.. which makes sense since set_value seems to only support setting one value for a given option.
@ajdavis Yes, I am absolutely interested. The implementation will certainly require some effort. In order not to break the existing API, it might be easiest to add methods specifically for getting and setting multiple values.
FWIW, tangential to this ticket but I'd also appreciate it if there were a way to GET multiple values for a given option (equivalent to git config --get-all). Should I open a new issue?
Activity
ajdavis commented on Jan 6, 2019
I can make a pull request for this, are the maintainers interested?
Byron commented on Jan 12, 2019
@ajdavis Yes, I am absolutely interested. The implementation will certainly require some effort. In order not to break the existing API, it might be easiest to add methods specifically for getting and setting multiple values.
Support multiple git config values per option
Python 3 compatibility
Use items and items_all correctly
maiamcc commented on Jul 3, 2019
FWIW, tangential to this ticket but I'd also appreciate it if there were a way to GET multiple values for a given option (equivalent to git config --get-all). Should I open a new issue?
Byron commented on Jul 20, 2019
By now this is implemented thanks to a generous PR.