Other comment pretty much already said it, but I think anyone with hundreds or thousands of mods installed in a game can tell you that literally patching the game code would be a painful endeavor.
Even if you compile your own game and want to change one simple thing, it's better if you can do it via a mod rather than directly editing the game code - this way you don't get merge conflicts when pulling the updated source from git!