Phillip Wood <phillip.wood123@xxxxxxxxx> writes: > ... I wonder if instead we could change git_default_config() to expect > a repository pointer as the callback data and use that to initialize > things. That would mean that we would not need to move code out of > git_default_config() to remove global variables and we would retain > the "last one wins" behavior when two or more config keys such are > "merge.log" and "merge.summary" set the same variable. It would be > fairly invasive though as we'd need to pass the repository pointer > down through all the other callbacks that end up calling > git_default_config(). Sounds very painful, but it does sound like something worthwhile to do. Thanks.