Re: git-replay/git-history lose notes
Junio C Hamano <[email protected]> Wed, 05 Aug 2026 06:04:13 -0700
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <[email protected]> |
Patrick Steinhardt <[email protected]> writes: >> It looks like git-replay and git-history will drop notes (or rather, >> not carry them over) when rewriting history. I've seen this both with >> "git replay --onto=… …" and "git history fixup" recently, though I >> suspect it affects all the modes. >> >> Fortunately when I check range-diffs before pushing out new versions, >> I notice notes have disappeared and can "git notes copy @{1}" or >> similar for a note at the tip. Recovery for the intermediate commits >> is a little more… involved… as I'm sure you can imagine. > > This somehow rings a bell -- wasn't there a recent discussion about this > on the mailing list somewhere? I might be confusing it with a different > command though that's loosing notes. I recall mentioning the reason why rebase and cherry-pick behave differently with respect to notes, and why that is a good thing, but that may not be what is ringing a bell for both of you.