git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-notes, how do they work?
@ 2012-05-12 10:43 Ulrich Spoerlein
  2012-05-12 11:01 ` Nguyen Thai Ngoc Duy
  0 siblings, 1 reply; 4+ messages in thread
From: Ulrich Spoerlein @ 2012-05-12 10:43 UTC (permalink / raw)
  To: git

Dear all,

I cannot figure out how notes are supposed to stay around and not be
GC'ed eventually, seeing as nothing references them, usually.

But let me start from the beginning, I'm using svn2git to convert a
large repository and I want it to store metadata in the notes, which it
does just fine. However, after a while of running (and I suspect garbage
collection is to blame) the older notes start to disappear and only HEAD
has a note attached to it. This means that the notes, as pushed to
github, are only partially complete.

IIUC refs/notes/commits points to the latest note, which points to HEAD.
However, there's no reference that points to the note pointing to
HEAD^1, so how will it not be garbage collected? How can it be pushed to
a remote repository?

I understand that notes cannot point to older notes, as that would make
removing/adding notes from/to older commits quite a hassle.

So, what am I doing wrong here? How can I avoid notes from disappearing
so that each and every one of it remains in the repo?

Cheers,
Uli

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-12 11:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-12 10:43 git-notes, how do they work? Ulrich Spoerlein
2012-05-12 11:01 ` Nguyen Thai Ngoc Duy
2012-05-12 11:27   ` Ulrich Spoerlein
2012-05-12 11:41   ` Angus Hammond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).