You're deep in flow, coding a critical feature. Two hours later, you push—only to discover your teammate already changed the same lines you did. The merge fails. Now you have to understand their changes, figure out how they interact with yours, and manually resolve conflicts.
This is preventable.
GitSpectra warns you before you commit that someone else has changed lines you're working on.
Screenshot
Real-time conflict detection showing red gutter icons on conflicting lines in the editor
GitSpectra uses git merge-tree to simulate merges locally, detecting conflicts without touching your working directory:
git fetch to get the latest remote stategit merge-tree to simulate merging remote changes with your local work┌─────────────────────────────────────┐ │ GitSpectra Engine │ ├─────────────────────────────────────┤ │ │ │ git fetch origin │ │ ↓ │ │ git merge-tree base target HEAD │ │ ↓ │ │ Parse conflict markers │ │ ↓ │ │ Update VS Code decorations │ │ │ └─────────────────────────────────────┘
Lines that will definitely cause a merge conflict. Both you and a teammate modified the exact same lines.
Screenshot
Close-up of red conflict gutter icon indicating a hard conflict
Lines where you and a teammate touched the same file in nearby regions. Not a guaranteed conflict, but worth knowing about.
Screenshot
Close-up of yellow warning gutter icon indicating a soft warning
| Benefit | Description |
|---|---|
| ⚡ Instant Feedback | See conflicts as you type, not after you push |
| 🎯 Line-Level Precision | Know exactly which lines are affected |
| 👤 Author Attribution | See who made the conflicting change |
| 🔄 Auto-Updates | Stays current as teammates push changes |
| 🔒 100% Local | No data leaves your machine |
Control conflict detection through VS Code settings:
{
"gitspectra.fetchInterval": 300, // Seconds between auto-fetch (0 = disabled)
"gitspectra.fetchOnSave": true, // Fetch when you save a file
"gitspectra.scope.branches": ["origin/main"], // Branches to check against
"gitspectra.scope.timeWindow": "30d" // How far back to look
}