Git development
 help / color / mirror / Atom feed
* How does 'git notes --ref' work?
@ 2011-01-14 10:21 Edwin Kempin
  2011-01-14 10:49 ` Johan Herland
  0 siblings, 1 reply; 3+ messages in thread
From: Edwin Kempin @ 2011-01-14 10:21 UTC (permalink / raw)
  To: git

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?

Thanks, Edwin

[1] http://www.kernel.org/pub/software/scm/git/docs/git-notes.html

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

* Re: How does 'git notes --ref' work?
  2011-01-14 10:21 How does 'git notes --ref' work? Edwin Kempin
@ 2011-01-14 10:49 ` Johan Herland
  2011-01-14 11:14   ` Edwin Kempin
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Herland @ 2011-01-14 10:49 UTC (permalink / raw)
  To: Edwin Kempin; +Cc: git

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

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

* Re: How does 'git notes --ref' work?
  2011-01-14 10:49 ` Johan Herland
@ 2011-01-14 11:14   ` Edwin Kempin
  0 siblings, 0 replies; 3+ messages in thread
From: Edwin Kempin @ 2011-01-14 11:14 UTC (permalink / raw)
  To: Johan Herland; +Cc: git

Thanks for the clarification.

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

end of thread, other threads:[~2011-01-14 11:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14 10:21 How does 'git notes --ref' work? Edwin Kempin
2011-01-14 10:49 ` Johan Herland
2011-01-14 11:14   ` Edwin Kempin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox