An open API service indexing awesome lists of open source software.

https://github.com/dkm/git-arcdiff

Dumb wrapper for arc's diff command
https://github.com/dkm/git-arcdiff

git phabricator

Last synced: over 1 year ago
JSON representation

Dumb wrapper for arc's diff command

Awesome Lists containing this project

README

          

git arcdiff
-----------

This is a simple wrapper for the [arc](https://secure.phabricator.com/book/phabricator/article/arcanist_diff/) command provided by [phabricator](https://phacility.com/phabricator/).

```
usage: git arcdiff [--dryrun] [--skip-staging] [--no-lint] [--verbose] [--arc ] [--depends-on ] [--no-add-diffid] [--no-create-branch] [--update [--verbatim]] []
or: git arcdiff [--dryrun] [--skip-staging] [--no-lint] [--verbose] [--arc ] --continue
or: git arcdiff [--dryrun] [--skip-staging] [--no-lint] [--verbose] [--arc ] [--no-force-request-review] [--no-add-diffid] --update-current
or: git arcdiff [--dryrun] [--skip-staging] [--no-lint] [--verbose] [--arc ] [--no-force-request-review]
or: git arcdiff [--dryrun] [--skip-staging] [--verbose] [--arc ] --add-diffid-in-head
or: git arcdiff [--dryrun] [--verbose] --abort

Available options are
-v, --verbose display some garbage
--no-lint do not apply linter
--verbatim update all field in the differential form
--skip-staging use the skip-staging option
--no-create-branch do not create a branch for the new code review
--depends-on ... add dependency on given existing code review
--continue continue after fixing a failed rebase
--dryrun only pretends to do something
--update-current update the existing code review bound to current checked out branch
--update ... same behavior as for creating a new review, but updates an existing review
--no-force-request-review
when updating, do not force the review state.
--abort rolls back to state before previous arcdiff command
--arc ... path to the arc command
--no-add-diffid when updating/creating a review, do not modify the original commit message to add reference to code review
--add-diffid-in-head ...
add a reference to differential revision in commit message of HEAD
```

Quickstart
----------

# Single review for last commit

## Create new review
```
$ git arcdiff origin/master HEAD^ HEAD
```

## Update existing review
```
$ git arcdiff --update D1234 origin/master HEAD^ HEAD
```

# Several commit review

## Create new review for commit A to B
```
o---o---o---o---o master (HEAD)
A B

$ git arcdiff origin/master A^ B
```

## Update existing review with extra commits (from A to C)
```
o---o---o---o---o--o---o master (HEAD)
A B C

$ git arcdiff --update D1234 origin/master A^ C
```