![]() |
![]()
| ![]() |
![]()
NAMEgit arc —
a wrapper to improve integration betwen git and arcanist
SYNOPSIS
DESCRIPTIONThegit arc utility creates and manages
FreeBSD Phabricator reviews based on git commits.
Git assumes a one-to-one relationship between git commits and Differential Revisions, and the Differential Revision title must match the summary line of the corresponding commit. In particular, the commit summaries must be unique across all open Differential Revisions authored the submitter. The first parameter must be a verb. The available verbs are:
CONFIGURATIONThese are manipulated bygit-config :
EXAMPLESThe typical end-to-end usage looks something like this.Commit changes with a message and create a Differential review: $ git commit -m "kern: Rewrite in Rust" $ git arc create HEAD Make changes to the diff based on review feedback, then amend the changes to the existing commit and update the Differential review: $ git commit --amend $ git arc update HEAD Now that all reviewers are happy, it is time to stage the commit and push it: $ git arc stage HEAD $ git push freebsd HEAD:main Create a Phabricator review using the contents of the most recent commit in your git checkout: $ git arc create -r markj HEAD The commit title is used as the review title, the commit log message is used as the review description, and <markj@FreeBSD.org> is added as a reviewer. Create a series of Phabricator reviews for each of HEAD~2, HEAD~ and HEAD: $ git arc create HEAD~3..HEAD Pairs of consecutive commits are linked into a patch stack. Note that the first commit in the specified range is excluded. Update the review corresponding to commit b409afcfedcdda: $ git arc update b409afcfedcdda The title of the commit must be the same as it was when the review was created. Note that the review description is not automatically updated. Apply the patch in review D12345 to the currently checked-out tree, and stage it: $ git arc patch D12345 List the status of reviews for all the commits in the branch “feature”: $ git arc list main..feature SEE ALSObuild(7), development(7)HISTORYThegit arc utility appeared in the src tools collection
in FreeBSD 14.0.
AUTHORSThegit arc utility was written by Mark
Johnston
<markj@FreeBSD.org>
and the manual page was written by Daniel Ebdrup
Jensen
<debdrup@FreeBSD.org>.
|