Closed
Description
From @ncoghlan on March 12, 2017 4:46
I like having the '[X.Y]' prefixes in cherry pick commit messages, so I went exploring to figure out how we could add them automatically here.
As far as I can tell, the best available option seems to be a combination of git commit --amend -m
and http://stackoverflow.com/questions/7293008/how-to-read-last-commit-comment which would involve doing:
git log -1 --pretty=%B
to get the full text of the current commit message, prepending the appropriate "[X.Y] " header, and then writing it back into the cherry-pick commit with git commit --amend -m
.
Is that a change you might be interested in including if I put together a PR?
Copied from original issue: Mariatta/chic_a_cherry_picker#14