evilmartians / lefthook

Fast and powerful Git hooks manager for any type of projects.
MIT License
4.66k stars 211 forks source link

perf: delay git and uname commands in hook scripts until needed #737

Closed scop closed 2 months ago

scop commented 2 months ago

Closes # (issue)

:zap: Summary

Avoid running git and uname commands in scripts until their output is actually needed.

I suggest reviewing without showing whitespace changes due to changes in indentation.

:ballot_box_with_check: Checklist

mrexox commented 2 months ago

Thank you! This makes sense