Skip to content

feat: agentdiff init should register refs/agentdiff/* fetch refspec #23

@codeprakhar25

Description

@codeprakhar25

What

agentdiff init should add a fetch refspec for refs/agentdiff/* to .git/config so that git fetch automatically brings down teammates' per-branch trace refs.

Why

Currently init only registers refs/notes/agentdiff (legacy). Devs who run git fetch before agentdiff push will never see teammates' local traces. The per-branch ref namespace is invisible to normal git operations without this refspec.

How

In init.rs, after installing hooks, add to .git/config:

[remote "origin"]
    fetch = +refs/agentdiff/*:refs/agentdiff/*

Or use: git config --add remote.origin.fetch +refs/agentdiff/*:refs/agentdiff/*

Check for duplicates before adding (idempotent).

Effort

~10 min. No dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions