git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git Notes - Search Functionality

From
Johan Herland <johan@herland.net>
Date
Feb 27, 2013, 15:44 UTC
Message-ID
<CALKQrgdStAva7j8dFM3_Yn9YgPkXyNVqdfk72eicc6QUGCaaDw@mail.gmail.com>
In-Reply-To
<CAFZnXLJCiq4G+_ZStWmjAGePWCD6mhske7Y4=oe2h==F0BYVLQ@mail.gmail.com>

On Wed, Feb 27, 2013 at 4:34 PM, krishna chaitanya kurnala <kkc4al@gmail.com> wrote:

Show 5 quoted lines
> 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
Show 15 quoted lines
> 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, <johan@herland.net>
www.herland.net
Previous: krishna chaitanya kurnalaNext: Thomas Rast
Message 2 of 3 in “Git Notes - Search Functionality”
  1. krishna chaitanya kurnalaFeb 27, 2013
  2. Johan HerlandFeb 27, 2013
  3. Thomas RastFeb 27, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.