From: Ulrich Spoerlein <uspoerlein@gmail.com>
To: git@vger.kernel.org
Subject: git-notes, how do they work?
Date: Sat, 12 May 2012 12:43:32 +0200 [thread overview]
Message-ID: <20120512104332.GN71676@acme.spoerlein.net> (raw)
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
next reply other threads:[~2012-05-12 10:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-12 10:43 Ulrich Spoerlein [this message]
2012-05-12 11:01 ` git-notes, how do they work? Nguyen Thai Ngoc Duy
2012-05-12 11:27 ` Ulrich Spoerlein
2012-05-12 11:41 ` Angus Hammond
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120512104332.GN71676@acme.spoerlein.net \
--to=uspoerlein@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).