supporting refspec like github or gerrit can help reviewing a lot.
Supporting refs/for/[targe] and refs/pull/[pull id] would be easy. We can do even more by using change-ids.
Also, here is a list of refspecs I have in mind based on my change review proposal.
refs/for/[target branch]
- (push) create a new PR with target branch (only when change-id is included in commit header)
refs/pull/[pull id]/head
- (push) update existing PR with that pull id
- (fetch) fetch existing PR
refs/pull/[pull id]/[pull round]
- (fetch) fetch existing PR with that specific round
refs/change/[change id]/head
- (push) update existing change
- (fetch) fetch existing change
refs/change/[change id]/[change round]
- (fetch) fetch existing change with that specific round
jj-vcs itself doesn't support refspecs afaik but that doesn't matter much because it is compatible with git. We can use pure git for refspec operations.
references:
wait, we can't support
refs/change/*because then multiple people might try to fetch/push there.refs/pull/*is fine though.