Page MenuHomePhabricator

Write ARCANIST into the environment while running arc
ClosedPublic

Authored by epriestley on Oct 10 2013, 1:14 PM.
Tags
None
Referenced Files
F15486826: D7281.id16394.diff
Thu, Apr 10, 9:47 AM
F15484518: D7281.id.diff
Wed, Apr 9, 6:46 PM
F15480572: D7281.diff
Tue, Apr 8, 3:00 PM
F15462816: D7281.id16394.diff
Tue, Apr 1, 5:55 PM
F15418806: D7281.id16394.diff
Fri, Mar 21, 1:35 AM
F15415978: D7281.diff
Thu, Mar 20, 8:36 AM
F15385287: D7281.diff
Mar 14 2025, 10:09 PM
Unknown Object (File)
Feb 27 2025, 3:13 AM
Subscribers

Details

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.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped