Thread (59 messages) flat view 59 messages, 7 authors, 2021-10-15

Re: [PATCH 0/3] Use default values from settings instead of config

From: Taylor Blau <hidden>
Date: 2021-09-13 19:19:10

On Mon, Sep 13, 2021 at 11:12:18AM -0700, Glen Choo wrote:
I'm fairly new to the codebase (this is my first patch!), so I have some
questions/concerns that I wasn't able to figure out:
Welcome to the Git community! :-).
- prepare_repo_settings() may have undesirable side effects or may
  not always be callable
Calling prepare_repo_settings() is definitely the right thing to do,
because (as you note) it centralizes the default values for settings
that it keeps track of.

You can call prepare_repo_settings() so long as you have a repository to
call it on. Since fsck and gc must run inside of a repository, the
callers you added are safe. And note that prepare_repo_settings() is
idempotent, i.e., that it is a noop when called more than once.

Thanks,
Taylor
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help