From: Johan Herland <johan@herland.net>
To: Edwin Kempin <edwin.kempin@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: How does 'git notes --ref' work?
Date: Fri, 14 Jan 2011 11:49:38 +0100 [thread overview]
Message-ID: <201101141149.38778.johan@herland.net> (raw)
In-Reply-To: <AANLkTimL137aFt2dyvdHxTMUjB4diwJQG-FQiYEK8tVJ@mail.gmail.com>
On Friday 14 January 2011, Edwin Kempin wrote:
> How does 'git notes --ref' work? If I try
> 'git notes --ref refs/meta/reject-commits add -m "reject" HEAD'
> then the note is added to 'refs/notes/refs/meta/reject-commits' and
> not as expected to 'refs/meta/reject-commits'.
>
> The description of the --ref option says [1]:
> "The ref is taken to be in refs/notes/ if it is not qualified."
> What is a qualified ref?
A qualified ref (in this context) is one that starts with refs/notes. If
it doesn't start with refs/notes, then refs/notes is prepended to it.
This is a restriction we put in place to make sure the notes
infrastructure didn't edit (i.e. damage) any refs outside the
refs/notes/ namespace.
We will probably remove this restriction in a future Git version. Until
then, please keep your notes within the refs/notes/ namespace.
...Johan
--
Johan Herland, <johan@herland.net>
www.herland.net
next prev parent reply other threads:[~2011-01-14 10:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-14 10:21 How does 'git notes --ref' work? Edwin Kempin
2011-01-14 10:49 ` Johan Herland [this message]
2011-01-14 11:14 ` Edwin Kempin
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=201101141149.38778.johan@herland.net \
--to=johan@herland.net \
--cc=edwin.kempin@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