# #region GitDeps [C:1] [TYPE Module] [SEMANTICS git, dependency, service, provider]
# @BRIEF Shared dependency wiring for monkeypatch-safe git_service access and constants.
# @LAYER API
# @INVARIANT  get_git_service() resolves from sys.modules at call time so test monkeypatching
#             of git_routes.git_service (the __init__ attribute) takes effect across all submodules.

import sys

# Guard value: batch limit for repository status queries prevents overload on large repo sets
MAX_REPOSITORY_STATUS_BATCH: int = 50


def get_git_service():
    """Resolve git_service from the git package root at call time.

    This indirection ensures that test monkeypatching via
    ``monkeypatch.setattr(git_routes, 'git_service', mock)``
    is visible to every submodule function, because each call
    re-resolves ``sys.modules['src.api.routes.git'].git_service``.
    """
    return sys.modules["src.api.routes.git"].git_service
# #endregion GitDeps
