Page MenuHomePhorge

Using Differential with plain Git, without requiring Arc
Open, Needs TriagePublic

Description

Phorge would like to introduce a "git magic ref", so that you can just push your changes there and automatically create a Differential revision.

This would make it easier to use Differential, since some newcomers do not want to install the Arcanist cli tool just for this Phab/Phorge's workflow.

Prior work:

In Phabricator, the planned implementation was using T8092 virtualizing Git refs in hosted repositories, but we might want a different implementation.

Event Timeline

For completeness - Landing revisions from the UI Since they wouldn't be able to land from git? - Would have to be enabled in the UI

At one point I did get this working on a test install (land from UI) - the steps are a bit convoluted, but, it is functional

Something I stumbled upon few months ago (via forgejo): agit-flow[^1]. Maybe worth sharing here -- for teh record? It does have some CLI client (git-repo) but it's optional and push via git push origin HEAD:refs/for/<target-branch>/<session> would trigger the Code Review process, without gerrit's Change-Id hack.

[^1]: agit stands for "Alibaba git" because that's from Alibaba (the Chinese conglomerate).