Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phabricator review all commits

I have created a new git repository for a new project and added several commits. I want to request my colleague to review the entire project in Phabricator.

Is there an Arcanist command which I can issue which will cause the entire project, with all commits, to appear in Phabricator for review?

what I want to do is basically this:

arc diff before-first-commit

The first commit has id 'aabbcc'. This doesn't work:

arc diff aabbcc~
Usage Exception: Unable to find any git commit named 'aabbcc~' in this repository.

Related question

In git, is there something like a pseudo-branch-name for the empty commit "the commit before the first commit"?

Is there a git diff command which will output all files in the project? Something like:

git diff before-first-commit HEAD
like image 393
James Brock Avatar asked Nov 06 '25 16:11

James Brock


1 Answers

You can try something like this:

$ git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD | arc diff --raw

You can also do this:

$ arc diff --base arc:empty

But there's a bug with this in Git until https://secure.phabricator.com/D9898 lands.

(The bug is now fixed, use arc upgrade to upgrade.)

like image 54
Evan Priestley Avatar answered Nov 09 '25 12:11

Evan Priestley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!