Quantcast
Viewing all articles
Browse latest Browse all 60

Is it possible to stop the editor from popping up once git prepare-commit-msg hook is called?

I am writing a prepare-commit-msg hook, which interactively prompts the user about some data and creates a commit message in a predefined format. In almost all cases, there is no need for the user to further edit the commit message. So is it possible to inform git not to open the editor once this hook is exited, and directly perform a commit with whatever is in the temporary msg file?


Viewing all articles
Browse latest Browse all 60

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>