Re:Git Notes: Git's coolest, most unloved feature (2022)
by xg15 on Sunday June 22, 2025 @04:20PM
(#44349952)
Ah, ok. That sounds better. Thanks for the info!
Re:Git Notes: Git's coolest, most unloved feature (2022)
by chrishill89 on Monday June 23, 2025 @11:31AM
(#44356810)
By 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)
Re:Git Notes: Git's coolest, most unloved feature (2022)
by fnl on Wednesday June 25, 2025 @04:30PM
(#44381544)
Thanks 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?
This is configurable. By default, amend and rebase operations will copy them forward. See git-config(1) under `notes.rewrite`.