3 ms·
If you cherry-pick a commit, does that include its notes?
by kazinator 4y ago
If you cherry-pick a commit, does that include its notes?
- Lio 4y agoNot by default. A cherry-pick is like a one commit rebase. You're affectively rewriting the commit's changes somewhere else and so get a new SHA to reflect the new location. Since git notes are tied to a particular SHA they don't get included. You can configure git to do it though. As mentioned else where in the comments, here's a good stackoverflow answer explaining how: https://stackoverflow.com/questions/14585613/is-there-a-way-to-automatically-merge-notes-if-commits-for-those-notes-get-squas/14601464#14601464 https://stackoverflow.com/questions/14585613/is-there-a-way-...