5

What the fuck is this even supposed to be

Comments
  • 15
    Git hooks are scripts which execute on various actions like push, pull, commit... These scrips are inside the .git folder so they need to be manually configured every time you or someone else clones the repository, and they might have dependencies which aren't available everywhere. Husky is a node package which can configure these scripts automatically when someone clones your repository and runs npm install. That way everyone has the same up-to-date hooks, and project owner can enforce rules like standard commit messages or stop people from committing ugly (unlinted) code.
  • 3
    @hitko Thanks dude! That was actually very educating
  • 3
    It is called husky, but the icon in the documentation is for a different race. Ah the hypocrisy …
  • 1
    im reading this at quarter past midnight and I know the words are English but like...... are they words?
  • 0
    @hitko can't one include the .git/hooks directory in version control?
    Apparently it's fine and just a little more cumbersome, see https://stackoverflow.com/questions...

    I've nothing against husky except it feels like huge FS overhead compared to a few one-line scripts
  • 1
    @webketje What you linked still requires everyone to do some manual work after cloning the repository to ensure hooks are active, Husky does that automatically when user installs / updates npm dependencies. And since Husky installs with other npm dependencies, you can be sure everyone will have what your hooks need to run.
  • 0
    You guys are missing the point, why tf is a library barking this isn't normal
  • 2
    @gcavalcante8808 That's because emojis are racist against different dog breeds. We need a petition to make breed-specific and breed-neutral dog emojis! Ree /s
  • 0
    So...
    Why not call said scripts hockers?
Add Comment