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
F15418806: D7281.id16394.diff
Fri, Mar 21, 1:35 AM
F15415978: D7281.diff
Thu, Mar 20, 8:36 AM
F15385287: D7281.diff
Fri, Mar 14, 10:09 PM
Unknown Object (File)
Feb 27 2025, 3:13 AM
Unknown Object (File)
Feb 12 2025, 3:47 AM
Unknown Object (File)
Feb 6 2025, 9:31 PM
Unknown Object (File)
Feb 6 2025, 6:33 PM
Unknown Object (File)
Jan 29 2025, 8:18 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