[git_cl] Rename infer_and_create

Didn't like the old name, finally came up with a better one

Bug: b/351071334
Change-Id: I79ca52f3fa821a2348b64e9215d0fd89cf425328
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5698627
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
changes/27/5698627/9
Allen Li 10 months ago committed by LUCI CQ
parent 55fc2f8208
commit 1feb63c434

@ -3671,7 +3671,7 @@ def DownloadGerritHook(force):
def ConfigureGitRepoAuth() -> None:
"""Configure the current Git repo authentication."""
logging.debug('Configuring current Git repo authentication...')
GitAuthConfigChanger.infer_and_create().apply(os.getcwd())
GitAuthConfigChanger.new_from_env().apply(os.getcwd())
class GitConfigMode(enum.Enum):
@ -3711,7 +3711,7 @@ class GitAuthConfigChanger(object):
self._set_config_func: Callable[..., str] = set_config_func
@classmethod
def infer_and_create(cls) -> 'GitAuthConfigChanger':
def new_from_env(cls) -> 'GitAuthConfigChanger':
"""Create a GitAuthConfigChanger by inferring from env."""
cl = Changelist()
# chromium-review.googlesource.com

Loading…
Cancel
Save