summaryrefslogtreecommitdiffstats
path: root/LICENSE
diff options
context:
space:
mode:
authorMatt Hunter <m@lfurio.us>2026-05-10 00:55:48 -0400
committerMatt Hunter <m@lfurio.us>2026-05-10 04:47:01 -0400
commite20e27ffa8a048068fd8d66b2b6a5bc90d91452b (patch)
tree8d2bdb6d92c1ca207aab200d7bcae0d0be8a2539 /LICENSE
parented7d2c87a983c5a7b555d7b8ef50919571195ef6 (diff)
downloadgit-sonar-e20e27ffa8a048068fd8d66b2b6a5bc90d91452b.tar.gz
git-sonar-e20e27ffa8a048068fd8d66b2b6a5bc90d91452b.zip
precheck: Switch to file-based detection and report all conditions
Detect all ongoing git conditions by checking for the existence of some file or directory within the .git folder. This eliminates the previous git rev-parse --verify commands, which should be a slight boost to performance. Furthermore, the implementation of rebase detection is no longer a special case. Also, restructure the script such that all applicable conditions are reported when run, not just the first we detect. The script exit code reflects the highest value of the active conditions. Though, as an optimization, still exit on the first found when --quiet is in effect. The script is cleaned up as well. In some cases style is changed to better match the current state of git-sonar. git-status is now only called once and cached for both dirty and untracked detection. Signed-off-by: Matt Hunter <m@lfurio.us>
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions