3 ms·
> Are git rebase etc smart enough to also copy over the notes to the new commit... This is configurable. By default, amend and rebase operations will copy them
by rlpb 1y ago
> Are git rebase etc smart enough to also copy over the notes to the new commit...
This is configurable. By default, amend and rebase operations will copy them forward. See git-config(1) under `notes.rewrite`.
- xg15 1y agoAh, ok. That sounds better. Thanks for the info!
- chrishill89 1y agoBy default no copying will be done. While `notes.rewrite.amend` and `notes.rewrite.rebase` are true you also need `notes.rewriteRef` which tells it what notes refs should be rewritten. And it has no value by default. (you can set it to a glob copy over all notes refs)
- fnl 1y agoThanks for the warning! From the git docs: > Set it to refs/notes/commits to enable rewriting for the default commit notes. Why wouldn’t that at least be the default? Why is rewriting off by default in the first place?