Martine Lenders <mlend...@riot-os.org> writes:

> Hi John,
> yes, it can be anywhere in the commit message and I already thought
> about using a hook for generating the commit message too, but the
> problem is then, that `git rebase` won't pair up the commit for
> squashing/fixing up with the original commit.

It won't match if you put it in the subject line, but John's proposal is
to put it at the bottom (i.e. in the body). This won't disturb "git
rebase --autosquash".

> Maybe another approach could be to allow for a configuration of a
> string that is ignored when matching the commit messages in `git
> rebase`.

I wish I could write commit messages like

fixup! deadbeef: fix typo (foo -> bar)

So that the commit message contains both the instruction for "rebase
--autosquash" and a quick explanation of what the commit is doing (as
usual commit messages).

AFAIK, it's not possible currently but shouldn't be hard to implement.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to