All Features

Real-Time Conflict Detection

See conflicts as you type—not when you try to merge.

The Problem

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.

The Solution

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

How It Works

GitSpectra uses git merge-tree to simulate merges locally, detecting conflicts without touching your working directory:

  1. Background Fetch — Periodically runs git fetch to get the latest remote state
  2. Merge Simulation — Uses git merge-tree to simulate merging remote changes with your local work
  3. Conflict Parsing — Parses output to find exact conflicting line ranges
  4. UI Update — Decorates your editor with conflict indicators in real-time
┌─────────────────────────────────────┐
│          GitSpectra Engine          │
├─────────────────────────────────────┤
│                                     │
│   git fetch origin                  │
│           ↓                         │
│   git merge-tree base target HEAD   │
│           ↓                         │
│   Parse conflict markers            │
│           ↓                         │
│   Update VS Code decorations        │
│                                     │
└─────────────────────────────────────┘

Conflict Types

🔴

Hard Conflicts

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

🟡

Soft Warnings

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

Key Benefits

BenefitDescription
⚡ Instant FeedbackSee conflicts as you type, not after you push
🎯 Line-Level PrecisionKnow exactly which lines are affected
👤 Author AttributionSee who made the conflicting change
🔄 Auto-UpdatesStays current as teammates push changes
🔒 100% LocalNo data leaves your machine

Configuration

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
}

Ready to prevent merge conflicts?

GitSpectra is free and open source.

Install for VS Code