Skip to main content

Comprehensive Git Staging Manager

Ensures ALL modified files are staged for commit, including:

  • Checkpoint files and indexes
  • MANIFEST.json files (dashboard dependencies)
  • Dedup state (global_hashes.json, checkpoint_index.json, unique_messages.jsonl)
  • Session files and exports
  • README and documentation
  • Any other modified tracked files

Provides detailed logging for every file staged (or skipped) with success/error tracking.

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

File: git_staging_manager.py

Classes

GitStagingResult

Result of git staging operation.

GitStagingManager

Manages comprehensive git staging with detailed logging.

Functions

get_modified_files()

Get all modified, untracked, and deleted files.

verify_critical_files_staged(staged_files)

Verify all critical paths are staged if they were modified.

stage_all_changes(include_untracked)

Stage all changes comprehensively with detailed logging.

Usage

python git_staging_manager.py