Skip to main content

Git Repository Scanner

Discovers and tracks ALL git repositories under PROJECTS/ directory tree.

Handles:

  • Master repository
  • All submodules (registered and unregistered)
  • Standalone git repositories
  • Nested git repositories

Provides comprehensive logging of all repositories and their status.

Author: AZ1.AI INC (Hal Casteel) Framework: CODITECT License: MIT

File: git_repository_scanner.py

Classes

GitRepository

Represents a discovered git repository.

GitRepositoryScanner

Scans directory tree for all git repositories and tracks their status.

Functions

find_all_repositories()

Recursively find ALL .git directories under root_path.

get_repositories_with_changes()

Get list of repositories that have uncommitted changes.

log_all_repositories()

Log detailed information about ALL repositories.

Usage

python git_repository_scanner.py