Source code for swh.loader.git

# Copyright (C) 2019-2020  The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information

from typing import Any, Dict


[docs] def register() -> Dict[str, Any]: from swh.loader.git.loader import GitLoader return { "task_modules": ["%s.tasks" % __name__], "loader": GitLoader, }
[docs] def register_from_disk() -> Dict[str, Any]: from swh.loader.git.from_disk import GitLoaderFromDisk return { "task_modules": [], "loader": GitLoaderFromDisk, }
[docs] def register_checkout() -> Dict[str, Any]: from swh.loader.git.directory import GitCheckoutLoader return { "task_modules": [], "loader": GitCheckoutLoader, }