git-annex/Git
Joey Hess 5287d1dc3f fixed behavior when multiple insteadOf configs are provided for the same url base
Consider this git config --list case:

url.git+ssh://git@example.com/.insteadOf=gl
url.git+ssh://git@example.com/.insteadOf=shared

Since config is stored in a Map, only the last of the values for this key
was stored and available for use by the insteadOf code. But that
is wrong; git allows either "gl" or "shared" to be used in an url and
the insteadOf value to be substituted in.

To support this, it seems best to keep the existing config map as-is,
and add a second map that accumulates a list of multiple values for
config keys. This new fullconfig map can be used in the rare places where
multiple values for a key make sense, without needing to complicate
everything else.

Haskell's laziness and data sharing keep the overhead of adding
this second map low.
2011-12-30 14:07:46 -04:00
..
Branch.hs split out Git/Command.hs 2011-12-14 15:56:11 -04:00
CatFile.hs use Common in a few more modules 2011-12-20 14:37:53 -04:00
CheckAttr.hs Can now be built with older git versions (before 1.7.7); the resulting binary should only be used with old git. 2011-12-22 15:01:13 -04:00
Command.hs split out Git/Command.hs 2011-12-14 15:56:11 -04:00
Config.hs fixed behavior when multiple insteadOf configs are provided for the same url base 2011-12-30 14:07:46 -04:00
Construct.hs fixed behavior when multiple insteadOf configs are provided for the same url base 2011-12-30 14:07:46 -04:00
Filename.hs handle C-style escapes in Format 2011-12-23 01:05:16 -04:00
HashObject.hs split out Git/Command.hs 2011-12-14 15:56:11 -04:00
Index.hs Add --include, which is the same as --not --exclude. 2011-12-22 14:00:17 -04:00
LsFiles.hs use Common in a few more modules 2011-12-20 14:37:53 -04:00
LsTree.hs use Common in a few more modules 2011-12-20 14:37:53 -04:00
Queue.hs use Common in a few more modules 2011-12-20 14:37:53 -04:00
Ref.hs avoid partial function, and parse git-ref output better 2011-12-15 16:58:04 -04:00
Sha.hs avoid partial functions, and added check for correct sha content 2011-12-15 15:57:47 -04:00
Types.hs fixed behavior when multiple insteadOf configs are provided for the same url base 2011-12-30 14:07:46 -04:00
UnionMerge.hs more partial function removal 2011-12-15 18:19:36 -04:00
Url.hs split more stuff out of Git.hs 2011-12-14 15:43:13 -04:00
Version.hs Can now be built with older git versions (before 1.7.7); the resulting binary should only be used with old git. 2011-12-22 15:01:13 -04:00