Commit graph

2 commits

Author SHA1 Message Date
google-labs-jules[bot]
29c12aa6f3 Bolt: optimize review_working_trees.py with bulk Git metadata
Optimized scripts/review_working_trees.py by consolidating multiple Git
subprocess calls into bulk metadata retrieval.

Key improvements:
- Implemented populate_metadata_cache() using `git for-each-ref`.
- Used `%(ahead-behind:origin/main)` for efficient unpushed commits detection.
- Used `%(HEAD)` to identify the current branch, eliminating an extra subprocess call.
- Consolidated `git status --short` and `git status -sb` into a single call.
- Added fallback logic for Git versions older than 2.41.0.
- Fixed a bug where the current branch marker was incorrectly applied.

Performance impact: Reduces Git subprocess calls from ~8 to ~4.
Verification: Verified consistent output and performance with `time`.
2026-02-27 17:48:38 +00:00
Huawei-Window-Techno
feadbaf06d feat: Add working tree review script and report - Created review_working_trees.py for comprehensive branch/stash/worktree analysis - Added Working Tree Review Report documentation - Analyzed 81 remote branches (25 merged, 55 unmerged) - Fixed Unicode encoding issues in git command execution 2026-01-10 05:13:04 +07:00