introduce --arc-lint flag to allow the phpcs-changed command to not check on whether a file is under git revision control, since it's being done by arcanist beforehand, so the extra check is not really needed then
introduce a new function for checking on whether the command was run from the git's root, allowing us to not use the extra git ls-files command for obtaining a file path relative to git root, when it's not needed
use --porcelain flag instead of --short for git status check, as it's more future proof option
only calculate the object hash in case the cache is actually being used, since it otherwise adds some overhead
A collection of performance improvements:
--arc-lint
flag to allow the phpcs-changed command to not check on whether a file is under git revision control, since it's being done by arcanist beforehand, so the extra check is not really needed thengit ls-files
command for obtaining a file path relative to git root, when it's not needed--porcelain
flag instead of--short
forgit status
check, as it's more future proof option