You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GitConfigParser.set_value should support setting multiple values for an option #717
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 commentedon Jan 6, 2019
I can make a pull request for this, are the maintainers interested?
Byron commentedon 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 commentedon 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 commentedon Jul 20, 2019
By now this is implemented thanks to a generous PR.