Skip to content

Instantly share code, notes, and snippets.

@drmuey
Last active November 30, 2018 20:41
Show Gist options
  • Save drmuey/983fb1e94ab54ce7cab88976e5cc7f74 to your computer and use it in GitHub Desktop.
Save drmuey/983fb1e94ab54ce7cab88976e5cc7f74 to your computer and use it in GitHub Desktop.
[TL;DR] arc workflow

work locally

  1. arc feature <branch>
  2. … work locally …
  3. arc diff (sends to review, creates “revision” D12345) or arc wip (see below)
    • needs work? goto 2
    • approved? goto 4
  4. arc land (merge D12345 to master)
  5. arc close-revision <revision> (closes D12345)

check it out on a different machine

  • arc patch D12345

I don’t have arc wip, what is that?

What: It is an alias

How: arc alias wip -- diff --plan-changes will set it up in ~/.arcrc. so it will work in all your repositories.

Why: If you want to submit changes that are not ready for final review arc diff will set it as “Needs Review” and notify people. In that case you should diff --plan-changes so that is is marked as “Changes Planned”. That is tedious so shorten it via an alias ¯\_(ツ)_/¯.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment