Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So pre-commit is just a package manager in disguise?

To the extreme you could have a demo package where to build the demo you actually have to run git commit -m "world" and the pre-commit would install gcc and all of the dependencies and then run a build, letting the commit success if the build passes. ;D



It's a weird form of a package manager yeah. The hooks execute independently from each other. We don't need requirements between the programming languages. In fact the hooks can even use different versions of the same programming language. If we have more usecases for this kind of programming, we could definitely pull just a package manager out of pre-commit.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: