Loading...
Loading...
比较文件和文本,支持统一diff、并排视图和补丁生成。
npx skill4agent add aidotnet/moyucode text-diff/diff# Compare two files
python scripts/text_diff.py file1.txt file2.txt
# Unified diff format
python scripts/text_diff.py old.py new.py --unified
# Side-by-side view
python scripts/text_diff.py file1.txt file2.txt --side-by-side
# Generate patch
python scripts/text_diff.py old.txt new.txt --patch > changes.patchdiffcomparepatchtextfiles