Re: [RFC/PATCH] pager.c: replace git_config with git_config_get_string
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Jun 29, 2014, 12:04 UTC
- Message-ID
- <vpq7g3zsz05.fsf@anie.imag.fr>
- In-Reply-To
- <53AED13D.60705@gmail.com>
Karsten Blees <karsten.blees@gmail.com> writes:
Show 14 quoted lines
> Am 28.06.2014 08:01, schrieb Matthieu Moy: >> Karsten Blees <karsten.blees@gmail.com> writes: >> >>> I still don't like that the invalidation is done in git_config_set, though, as >>> this is also used to write completely unrelated files. >> >> I don't get it. It is used to write the config files. Yes, we trigger a >> complete reload instead of just changing this particular value in the >> hashmap, but I do not see "unrelated files" in the picture. >> > > git-cherry-pick, revert: writes '.git/sequencer/opts' (sequencer.c:save_opts) > git-mv <submodule>: writes '.gitmodules' (submodule.c:update_path_in_gitmodules) > ...and the submodule's '.git/config' (submodule.c:connect_work_tree_and_git_dir)
In the previous patch series, the cache was only about the system, user and repo config files. So, .git/sequencer/opts, .gitmodules are totally independant. In the latest series, there's a new notion of config_set. .gitmodules, .git/sequencer/opts and the usual config files are in different config sets, and their cache is invalidated independently.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/