Junio C Hamano <gitster@xxxxxxxxx> writes: [...] > Teach the "--detached-head-name=<branch>" option to "git merge" and > its underlying "git fmt-merge-message", to pretend as if we were > merging into <branch> (instead of HEAD) when they prepare the merge > message. The pretend name honors the usual "into <target>" > suppression mechanism, which can be seen in the tests added here. I think renaming destination branch in the commit message is useful in general, and should not be limited to merging to detached head. Please consider to introduce something like "--into-name=<name>" instead, that will do this renaming unconditionally. Also, being an advocate for eventual abandoning of "detached head" from Git terminology, I'd prefer to see more neutral name for the option anyway. Thanks, -- Sergey Organov