difftastic
Structural diff tool that compares files based on syntax
Tested on macOS
Use it
macOS arm64
install difftastic via brew
brew install difftastic
Check that it works
difft --version
The output should contain “Difftastic 0.72.0”.
First thing to try
cat > /tmp/foo1.c <<'EOF'
int main() {
int x = 1;
return x;
}
EOF
cat > /tmp/foo2.c <<'EOF'
int main() {
int x = 2;
return x;
}
EOF
cat > /tmp/before.js <<'EOF'
function add(a, b) { return a + b; }
EOF
cat > /tmp/after.js <<'EOF'
function add(a, b) {
return a + b;
}
EOF
cat > /tmp/after_changed.js <<'EOF'
function add(a, b) {
return a - b;
}
EOF
cat > /tmp/file_with_conflicts.js <<'EOF'
<<<<<<< HEAD
function foo() { return 1; }
=======
function foo() { return 2; }
>>>>>>> branch
EOF
cat > /tmp/reformat_before.js <<'EOF'
function greet(name) { console.log("hello " + name); }
EOF
cat > /tmp/reformat_after.js <<'EOF'
function greet(name) {
console.log("hello " + name);
}
EOF
cat > /tmp/reformat_after_changed.js <<'EOF'
function greet(name) {
console.log("hi " + name);
}
EOF
echo setup_done
ls -l /tmp/foo1.c /tmp/before.js /tmp/file_with_conflicts.js
difft /tmp/foo1.c /tmp/foo2.cWhat it does
- Compare files based on syntaxTested
- Highlight changed syntax pieces in contextTested
- Show actual changes ignoring reformattingTested
- Check files for same syntax treeTested
How far pickfit got
macOS arm64
- Installs
- Starts
- 4 of 4 features work
- Works offline
Good for
An alternative to diff and mergiraf.
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
macOS arm64
Its main function works
- Replayed from scratch
- Works offline
- Checked on 4 Nov 2026
- Version 0.72.0