fix: two-bug root-cause for ghost files in muse status
tools/git2muse.py: lstrip('./') was stripping the leading dot from hidden paths (.cursorignore → cursorignore, .github/ → github/). Replace with removeprefix('./') which only removes the literal tar prefix, not individual characters.
muse/core/ignore.py: directory patterns (trailing /) were silently skipped instead of matching all files inside that directory. Fixed to match gitignore semantics: 'artifacts/' now ignores every file under artifacts/, while still not matching a file named 'artifacts'.
tests/test_core_ignore.py: updated two tests that documented the old broken behaviour to assert the correct gitignore-compatible semantics.
Muse Structured Delta
code 3 files
muse/core/ignore.py
.py
1 symbol modified
1 symbol
is_ignored
tests/test_core_ignore.py
.py
2 symbols added, 2 symbols removed, 2 symbols modified
6 symbols
TestIsIgnored.test_directory_pattern_not_applied_to_file
removed method test_directory_pattern_not_applied_to_file
TestMidiPluginSnapshotIgnore.test_snapshot_directory_pattern_does_not_exclude_file
removed method test_snapshot_directory_pattern_does_not_exclude_file
TestIsIgnored.test_directory_pattern_ignores_files_inside
added method test_directory_pattern_ignores_files_inside
TestMidiPluginSnapshotIgnore.test_snapshot_directory_pattern_excludes_files_inside
added method test_snapshot_directory_pattern_excludes_files_inside
TestIsIgnored
TestMidiPluginSnapshotIgnore
tools/git2muse.py
.py
1 symbol modified
1 symbol
_extract_tree_to
Symbol Graph
code
Click a symbol node to inspect it.
Snapshot Diff
308 files in tree
~3
Comments
0No comments yet. Be the first to start the discussion.