]> khamidou — GitHub mirrors - arcanist.git/commit
Write ARCANIST into the environment while running arc
authorepriestley <git@epriestley.com>
Thu, 10 Oct 2013 13:18:37 +0000 (06:18 -0700)
committerepriestley <git@epriestley.com>
Thu, 10 Oct 2013 13:18:37 +0000 (06:18 -0700)
commit79be59863e9d4f5829646b3bc35f3d8a24a1467b
treee0d4d2d2c450e536f27793bf13e62d07bc1d1da5
parent13e422e123fed10cfa7e4962ae19ccd39f712e1c
Write ARCANIST into the environment while running arc

Summary:
Addresses a request to let Git commit hooks react differently when run via `arc`. While executing an `arc` command, write ARCANIST into the environment.

(I wrote the actual command as the value since it seemed like it could plausibly be more useful than `true` or `1`.)

Test Plan: Added `pre-commit` to `.git/hooks` which did `echo $ARCANIST`, verified the envvar was accessible when running via arc.

Reviewers: btrahan, frgtn

Reviewed By: frgtn

CC: aran
Differential Revision: https://secure.phabricator.com/D7281
scripts/arcanist.php