Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
31 July 2024
In this episode I'll have a look at the tool called pre-commit. It's a tool, as the name suggests, for setting up (and reusing) git pre-commit URLs.
Links:
* https://pre-commit.com/
* QWAM episode on git hooks: https://youtu.be/CrkxCDv8RIo?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
* QWAM episode on clang-format: https://youtu.be/Cz36YveDI2E?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
* QWAM episode on git sub- modules: https://youtu.be/Np8FOQ4nM4U?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
* "Introduction to Qt Widgets" playlist: https://www.youtube.com/playlist?list=PL6CJYn40gN6iFcTyItvnE5nOmJR8qk_7o
* Link to KDAB Services: https://www.kdab.com/services/
0:00 Intro
0:42 What is pre-commit?
2:53 pre-commit in action
3:19 Make sure you have nothing uncommitted
3:51 Installing pre-commit
4:43 Generating pre-commit-config.yaml
5:23 My current fit hook setup
7:28 Installing pre-commit on the project
8:36 Making a commit
9:27 Advertisement
9:51 Running the commit hook on the complete project
11:50 Excluding pdf and svg files and files from 3rdparty
14:39 Understanding the hooks
18:19 Adding clang-format
21:52 Which checks to include?
All QML tips and tricks videos : https://www.youtube.com/playlist?list=PL6CJYn40gN6jWHP5krsQrVGyYtKh3A3be
All Qt Widgets and more videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
All Introduction to Qt Widgets videos: https://www.youtube.com/playlist?list=PL6CJYn40gN6iFcTyItvnE5nOmJR8qk_7o