The first version of llvm-patch provides an 'apply' subcommand, that
fetches the latest diff for a given differential ID and applies it to
the working directory, using the commit message from Phabricator.
It requires a valid ~/.arcrc file with your API token, e.g.
{
"hosts": {
"https://reviews.llvm.org/api/": {
"token": "cli-thisismyapikey"
}
}}
To get your API token, visit https://reviews.llvm.org/conduit/login/.
Can we check if .arcrc exists before opening it?