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.
What
agentdiff initshould add a fetch refspec forrefs/agentdiff/*to.git/configso thatgit fetchautomatically brings down teammates' per-branch trace refs.Why
Currently
initonly registersrefs/notes/agentdiff(legacy). Devs who rungit fetchbeforeagentdiff pushwill 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:Or use:
git config --add remote.origin.fetch +refs/agentdiff/*:refs/agentdiff/*Check for duplicates before adding (idempotent).
Effort
~10 min. No dependencies.