To avoid any change in the current git behaviour by default, I've added a configuration variable that allow to activate the feature for those who want to see the branchname in commit. By default, this feature is disabled Arnaud Bertrand (2): Add branchname in commit header Add the configuration parameter core.branchnameincommit Documentation/pretty-formats.txt | 1 + cache.h | 1 + commit.c | 21 +++++++++++++++++++++ config.c | 5 +++++ environment.c | 1 + pretty.c | 15 +++++++++++++++ 6 files changed, 44 insertions(+) -- 2.25.0.rc0.7.g17b02bf28a