]> Sergey Matveev's repositories - public-inbox.git/commit
config: warn on multiple values for some fields
authorEric Wong <e@80x24.org>
Sun, 20 Sep 2020 01:43:15 +0000 (01:43 +0000)
committerEric Wong <e@80x24.org>
Sun, 20 Sep 2020 18:16:24 +0000 (18:16 +0000)
commitc8fe4673056571ed251c3a20cb0bbec586c60bd6
treeb1d4faee0e3964d48c76322e77b09826200b24ba
parentd78f50649a5545d66a61b5465ca7f5ce4be398ea
config: warn on multiple values for some fields

Our code doesn't support multi-values for these, and having
unexpected arrays leads to unexpected results (e.g. showing
stuff like "ARRAY(0xDEADBEEFADD12E55)" in user interfaces).  So
warn and only use the last value (matching git-config(1)
behavior without `--get-all').
lib/PublicInbox/Config.pm