From: Karl Wiberg Date: Mon, 24 Aug 2009 08:28:33 +0000 (+0200) Subject: When reading a config value, pick the last value, not the first X-Git-Tag: v0.15-rc3~5^2~1 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/d34d6e351e9708f4a5ce519e508abbc418285b5e?ds=inline;hp=d34d6e351e9708f4a5ce519e508abbc418285b5e When reading a config value, pick the last value, not the first When reading the config values, we save all values for a given key in a list, in the order we see them. Then, when asked for one value, we used to return the _first_ value in the list. But the correct thing to do in order to allow local configs (like the repository's .git/config) to override global configs (like ~/.gitconfig) is to return the _last_ value. Signed-off-by: Karl Wiberg ---