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
15 February 2022
Git supports running local scripts at different times, including when you make commits or push your changes up stream.
In this episode I discuss the hooks I have, which include
* hooks to ensure I don't commit code with FIXME's in,
* hooks to ensure I don't use specific classes (I should use KDVTableView instead of QTableView)
* hooks to ensure I do not use QDate::currentDate (which would break my unit tests)
As always this is mostly for inspiration, but I do, of course, share my code (of which I've already stolen some elsewhere)
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv/tree/master/Qt-Widgets-and-more/git-setup
All Qt Widgets and more videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Learn Modern C++
Our hands-on Modern C++ training courses are designed to quickly familiarize newcomers with the language. They also update professional C++ developers on the latest changes in the language and standard library introduced in recent C++ editions.
Learn more