Skip to main content

---

title: "Add Files To Commits" component_type: script version: "1.0.0" audience: contributor status: stable summary: "CODITECT Git File Staging Helper =================================" keywords: ['add', 'automation', 'commits', 'files', 'git'] tokens: ~500 created: 2025-12-22 updated: 2025-12-22 script_name: "add_files_to_commits.py" language: python executable: true usage: "python3 scripts/add_files_to_commits.py [options]" python_version: "3.10+" dependencies: [] modifies_files: false network_access: false requires_auth: false

CODITECT Git File Staging Helper

STATUS: STUB - Not yet implemented VERSION: 0.1.0 (placeholder) AUTHOR: CODITECT Core Team

DESCRIPTION: Intelligently stages files for git commits based on patterns, change types, and commit context. Helps organize related changes into logical commits.

PURPOSE: - Group related file changes for atomic commits - Apply staging patterns (by type, directory, feature) - Preview what would be staged - Support interactive staging workflows

EXPECTED INPUTS: --pattern : File pattern to stage (glob) --type : Change type filter (added, modified, deleted) --related-to : Stage files related to specified file --interactive : Interactive staging mode --dry-run : Preview without staging

EXPECTED OUTPUTS: - Staged files in git index - Report of files staged

IMPLEMENTATION REQUIREMENTS: 1. Git status parsing 2. Pattern matching 3. Related file detection 4. Interactive UI 5. Dry-run support

USAGE EXAMPLES: python scripts/add_files_to_commits.py --pattern "*.py" python scripts/add_files_to_commits.py --type modified --related-to src/main.py python scripts/add_files_to_commits.py --interactive

SEE ALSO: - scripts/git-workflow.py - skills/git-workflow-automation/SKILL.md

File: add_files_to_commits.py

Functions

main()

No description

Usage

python add_files_to_commits.py