Pages

Wednesday, October 01, 2008

Cherry-picking commits from CDK trunk: how to make a reasonable commit message

Some of you heard me complain about commit messages resulting from git cherry-pick which allows me to apply patches from CDK trunk to a branch, without needing to do a full merge of what happens in trunk. The commit messages would be identical, which made it seem that those original messages were mine.

However, this is how I can modify those messages:
    $ git commit --amend
This allows me to convert a mere refactored a method into Applied patch from trunk (rev 12479): [shk3] refactored a method.