Git Notes - Search Functionality

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Git Notes - Search Functionality

From: krishna chaitanya kurnala <hidden>
Date: 2016-06-15 22:56:16

Hello All

   I working on Git Notes. I want to know if there is an easy way to
obtain a list of all "namespaces"(For eg., git notes --ref=namespace
... ) with notes objects in a specific git repository. We can easily
create, edit, merge git notes with commands if we know the namespaces
and/or the sha. But, for example, Has anyone tried to search for a
string in a git notes objects for that project etc?
  The closest i can think of is using some options with git logs, for
example, git log --show-notes=*  --format="%H %N" etc.

Appreciate your time.

thanks
Krishna Chaitanya

Re: Git Notes - Search Functionality

From: Johan Herland <hidden>
Date: 2016-06-15 22:56:16

On Wed, Feb 27, 2013 at 4:34 PM, krishna chaitanya kurnala
[off-list ref] wrote:
Hello All

   I working on Git Notes. I want to know if there is an easy way to
obtain a list of all "namespaces"(For eg., git notes --ref=namespace
... ) with notes objects in a specific git repository.
The notes namespaces are stored as regular refs under refs/notes/*.
Here's one way to list the available namespaces:

  git for-each-ref refs/notes/


Hope this helps,

...Johan
We can easily
create, edit, merge git notes with commands if we know the namespaces
and/or the sha. But, for example, Has anyone tried to search for a
string in a git notes objects for that project etc?
  The closest i can think of is using some options with git logs, for
example, git log --show-notes=*  --format="%H %N" etc.

Appreciate your time.

thanks
Krishna Chaitanya
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Johan Herland, [off-list ref]
www.herland.net
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help