Skip to content
Snippets Groups Projects
  • Jonathan Wakely's avatar
    df665e56
    contrib: Make prepare-commit-msg hook smarter for amends · df665e56
    Jonathan Wakely authored
    With this change the prepare-commit-msg hook can compare the log of a
    commit being amended with the staged changes, and not run mklog.py
    unnecessarily. This is controlled by a git config option,
    gcc-config.mklog-hook-type.
    
    contrib/ChangeLog:
    
    	* prepare-commit-msg: Use the gcc-config.mklog-hook-type Git
    	config key instead of the GCC_FORCE_MKLOG environment variable.
    	Optionally disable generating a new ChangeLog template for
    	amended commits when the existing log is still OK.
    df665e56
    History
    contrib: Make prepare-commit-msg hook smarter for amends
    Jonathan Wakely authored
    With this change the prepare-commit-msg hook can compare the log of a
    commit being amended with the staged changes, and not run mklog.py
    unnecessarily. This is controlled by a git config option,
    gcc-config.mklog-hook-type.
    
    contrib/ChangeLog:
    
    	* prepare-commit-msg: Use the gcc-config.mklog-hook-type Git
    	config key instead of the GCC_FORCE_MKLOG environment variable.
    	Optionally disable generating a new ChangeLog template for
    	amended commits when the existing log is still OK.