![Forrest logo](/images/logo.png)
arc:tldr:28e6b
The arc land
command is a feature of the Arcanist tool, which is a command-line interface for interacting with the Differential code review system in the Phabricator software development platform.
When you are ready to merge a code change, the arc land
command facilitates the process of submitting your changes for review and then committing them to the repository. It performs several actions:
-
It uses the
arc diff
command in the background to create a revision, which represents your code changes, and uploads it to the Differential code review system on Phabricator. -
It waits for the review to be accepted by a reviewer, and ensures that the changes are up to date with the latest changes in the repository before proceeding.
-
Once the review is accepted,
arc land
automatically applies your changes to the target branch, creating a new commit. If there are any merge conflicts, it aborts the process and prompts you to resolve them. -
Finally, it informs Phabricator that the changes have been landed, closing the corresponding review.
Overall, the arc land
command simplifies the process of submitting and integrating code changes in a controlled and collaborative manner, providing a smoother workflow for development teams.