diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-12-09 05:10:48 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-09 13:37:21 -0800 |
commit | 09ac67a1839eda984b172d4d75153c767d6bbf14 (patch) | |
tree | 6c0965e3887a42bcba8cc57445f29a03422a4367 /git.c | |
parent | 8164c961e16834da283cbf5ac5d22313b982a484 (diff) |
format-patch: move git_config() before repo_init_revisions()
In 13cdf78094 (format-patch: teach format.notes config option,
2019-05-16), the order in which git_config() and repo_init_revisions()
were swapped so that `rev.notes_opt` would be initialized before
git_config() was called. This is problematic, however, as git_config()
should generally be called before repo_init_revisions().
Break this circular dependency by creating `show_notes` and `notes_opt`
which git_config() reads into. Then, copy these values over to
`rev.show_notes` and `rev.notes_opt` after repo_init_revisions() is
called.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
0 files changed, 0 insertions, 0 deletions