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
Unknown Object (File)
Sat, Jan 4, 11:43 PM
Unknown Object (File)
Thu, Dec 19, 5:28 PM
Unknown Object (File)
Tue, Dec 17, 10:41 AM
Unknown Object (File)
Sun, Dec 15, 6:37 AM
Unknown Object (File)
Dec 12 2024, 8:05 AM
Unknown Object (File)
Dec 12 2024, 6:49 AM
Unknown Object (File)
Dec 11 2024, 10:22 PM
Unknown Object (File)
Dec 9 2024, 4:12 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