Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create revision per feature branch

I am currently using Git and Arcanist for our project. I have a project with a couple of tasks through phabricator. As soon as I create a revision through arc diff for feature branch (A), I want to start in a different feature branch (B) before the revision is closed. How can I call arcanist so that a new diff and revision is created for every single branch alone? When I switch branches and try arc diff, it just adds the new revision and diff to the one before.

like image 977
Dev.One Avatar asked Nov 01 '22 20:11

Dev.One


1 Answers

Are there changes from A and B depends on each other?

If No:

For example you're at master now and create new A branch with git checkout -b A, make your changes and that push it to review with arc diff master.

Now you can go back to master and create new B branch from it with

git checkout master
git checkout -b "B"

make changes and push it to review with arc diff master. You will have two reviews for A and B

If Yes: you pushed your changes for review for A branch. Now you can create new B branch from A with: git checkout -b B, make your changes and push it to review with:

arc diff A

after it you will have also two reviews for A and B

like image 193
0xAX Avatar answered Nov 15 '22 04:11

0xAX