Conflict Detection

check_conflicts

from x4_catalog import check_conflicts

result = check_conflicts([Path("./my_mod"), Path("./other_mod")])
# result["conflicts"]     -- list of CONFLICT entries
# result["safe"]          -- list of SAFE overlaps (add+add)
# result["info"]          -- list of INFO overlaps
# result["files_checked"] -- number of shared files analyzed
def check_conflicts(
    mod_dirs: list[Path],
) -> dict[str, Any]: ...

Compares diff patches across two or more mod directories. Classifies overlapping XPath selectors as CONFLICT (replace+replace, remove+modify), SAFE (add+add to same parent), or INFO (mixed operations).



x4cat — MIT License

This site uses Just the Docs, a documentation theme for Jekyll.