refactor
BREAKING
task/bridge-decomp-phase3
#1 / 1
refactor: extract git primitives to muse.core.bridge.git_primitives (issue #14 Phase 3)
Move GitCommitInfo/GitTagInfo TypedDicts, AttributionMapper, _CatFile, _git, _batch_commit_log, _batch_diff_tree, _is_lfs_pointer, ANSI helpers, _list_git_branches/_tags, and security validators out of bridge.py into a focused muse.core.bridge.git_primitives module. bridge.py drops from 3138 → 2355 lines. All 193 bridge tests green.
sha256:19ad48d4f3082eeede0e06028fa808440665df2899d4bcd3cc79b8221b2b8ca0
sha
+57
−28
symbols
sha256:44833369ee8d726de72c2e8172fc87e826acd7ba3416b93d3ba72ea90bcbafaa
snapshot
+57
symbols added
−28
symbols removed
0
dead code introduced
Semantic Changes
85 symbols
+
_ANSI_ESCAPE_RE
variable
variable _ANSI_ESCAPE_RE L500–500 ← moved from muse/cli/commands/bridge.py
+
_BRANCH_SAFE_RE
variable
variable _BRANCH_SAFE_RE L129–129 ← moved from muse/cli/commands/bridge.py
+
_BRANCH_UNSAFE_CHARS_RE
variable
variable _BRANCH_UNSAFE_CHARS_RE L135–135 ← moved from muse/cli/commands/bridge.py
+
_DEFAULT_EXCLUDE_PREFIXES
variable
variable _DEFAULT_EXCLUDE_PREFIXES L65–77 ← moved from muse/cli/commands/bridge.py
+
_DEFAULT_EXCLUDE_SUFFIXES
variable
variable _DEFAULT_EXCLUDE_SUFFIXES L79–94 ← moved from muse/cli/commands/bridge.py
+
_batch_commit_log
function
function _batch_commit_log L335–392 ← moved from muse/cli/commands/bridge.py
+
_batch_diff_tree
function
function _batch_diff_tree L395–478 ← moved from muse/cli/commands/bridge.py
+
_is_lfs_pointer
function
function _is_lfs_pointer L485–497 ← moved from muse/cli/commands/bridge.py
+
_list_git_branches
function
function _list_git_branches L538–551 ← moved from muse/cli/commands/bridge.py
+
_should_exclude
function
function _should_exclude L97–122 ← moved from muse/cli/commands/bridge.py
+
_validate_git_branch_name
function
function _validate_git_branch_name L150–165 ← moved from muse/cli/commands/bridge.py
+
_validate_git_sha
function
function _validate_git_sha L138–147 ← moved from muse/cli/commands/bridge.py
−
AttributionMapper
class
class AttributionMapper L169–220 → moved to muse/core/bridge/git_primitives.py
−
_ANSI_ESCAPE_RE
variable
variable _ANSI_ESCAPE_RE L486–486 → moved to muse/core/bridge/git_primitives.py
−
_BRANCH_SAFE_RE
variable
variable _BRANCH_SAFE_RE L1635–1635 → moved to muse/core/bridge/git_primitives.py
−
_BRANCH_UNSAFE_CHARS_RE
variable
variable _BRANCH_UNSAFE_CHARS_RE L1641–1641 → moved to muse/core/bridge/git_primitives.py
−
_DEFAULT_EXCLUDE_PREFIXES
variable
variable _DEFAULT_EXCLUDE_PREFIXES L111–123 → moved to muse/core/bridge/git_primitives.py
−
_DEFAULT_EXCLUDE_SUFFIXES
variable
variable _DEFAULT_EXCLUDE_SUFFIXES L125–140 → moved to muse/core/bridge/git_primitives.py
−
_GIT_SHA_RE
variable
variable _GIT_SHA_RE L1638–1638 → moved to muse/core/bridge/git_primitives.py
−
_batch_commit_log
function
function _batch_commit_log L322–380 → moved to muse/core/bridge/git_primitives.py
−
_batch_diff_tree
function
function _batch_diff_tree L382–470 → moved to muse/core/bridge/git_primitives.py
−
_is_lfs_pointer
function
function _is_lfs_pointer L472–484 → moved to muse/core/bridge/git_primitives.py
−
_list_git_branches
function
function _list_git_branches L848–861 → moved to muse/core/bridge/git_primitives.py
−
_list_git_tags
function
function _list_git_tags L863–893 → moved to muse/core/bridge/git_primitives.py
−
_should_exclude
function
function _should_exclude L142–167 → moved to muse/core/bridge/git_primitives.py
−
_validate_git_branch_name
function
function _validate_git_branch_name L1654–1670 → moved to muse/core/bridge/git_primitives.py
−
_validate_git_sha
function
function _validate_git_sha L1643–1652 → moved to muse/core/bridge/git_primitives.py
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:19ad48d4f3082eeede0e06028fa808440665df2899d4bcd3cc79b8221b2b8ca0 --body "your comment"
No comments yet. Be the first to start the discussion.