{"thread":{"id":"33033","subject":"Git Notes - Search Functionality","startedAt":"2013-02-27T15:34:58Z","lastAt":"2013-02-27T15:57:46Z","messageCount":3,"participants":["krishna chaitanya kurnala","Thomas Rast","Johan Herland"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"210399","messageId":"CAFZnXLJCiq4G+_ZStWmjAGePWCD6mhske7Y4=oe2h==F0BYVLQ@mail.gmail.com","threadId":"33033","inReplyTo":null,"subject":"Git Notes - Search Functionality","fromName":"krishna chaitanya kurnala","fromEmail":"kkc4al@gmail.com","sentAt":"2013-02-27T15:34:58Z","receivedAt":"2013-02-27T15:34:58Z","isPatch":false,"sender":{"key":"kkc4al@gmail.com","avatar":null},"body":"Hello All\n\n   I working on Git Notes. I want to know if there is an easy way to\nobtain a list of all \"namespaces\"(For eg., git notes --ref=namespace\n... ) with notes objects in a specific git repository. We can easily\ncreate, edit, merge git notes with commands if we know the namespaces\nand/or the sha. But, for example, Has anyone tried to search for a\nstring in a git notes objects for that project etc?\n  The closest i can think of is using some options with git logs, for\nexample, git log --show-notes=*  --format=\"%H %N\" etc.\n\nAppreciate your time.\n\nthanks\nKrishna Chaitanya\n"},{"id":"210406","messageId":"CALKQrgdStAva7j8dFM3_Yn9YgPkXyNVqdfk72eicc6QUGCaaDw@mail.gmail.com","threadId":"33033","inReplyTo":"CAFZnXLJCiq4G+_ZStWmjAGePWCD6mhske7Y4=oe2h==F0BYVLQ@mail.gmail.com","subject":"Re: Git Notes - Search Functionality","fromName":"Johan Herland","fromEmail":"johan@herland.net","sentAt":"2013-02-27T15:44:59Z","receivedAt":"2013-02-27T15:44:59Z","isPatch":false,"sender":{"key":"johan@herland.net","avatar":"https://avatars.githubusercontent.com/u/547031?v=4"},"body":"On Wed, Feb 27, 2013 at 4:34 PM, krishna chaitanya kurnala\n<kkc4al@gmail.com> wrote:\n> Hello All\n>\n>    I working on Git Notes. I want to know if there is an easy way to\n> obtain a list of all \"namespaces\"(For eg., git notes --ref=namespace\n> ... ) with notes objects in a specific git repository.\n\nThe notes namespaces are stored as regular refs under refs/notes/*.\nHere's one way to list the available namespaces:\n\n  git for-each-ref refs/notes/\n\n\nHope this helps,\n\n...Johan\n\n> We can easily\n> create, edit, merge git notes with commands if we know the namespaces\n> and/or the sha. But, for example, Has anyone tried to search for a\n> string in a git notes objects for that project etc?\n>   The closest i can think of is using some options with git logs, for\n> example, git log --show-notes=*  --format=\"%H %N\" etc.\n>\n> Appreciate your time.\n>\n> thanks\n> Krishna Chaitanya\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n\n\n\n-- \nJohan Herland, <johan@herland.net>\nwww.herland.net\n"},{"id":"210403","messageId":"874ngxagw5.fsf@pctrast.inf.ethz.ch","threadId":"33033","inReplyTo":"CAFZnXLJCiq4G+_ZStWmjAGePWCD6mhske7Y4=oe2h==F0BYVLQ@mail.gmail.com","subject":"Re: Git Notes - Search Functionality","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2013-02-27T15:57:46Z","receivedAt":"2013-02-27T15:57:46Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"krishna chaitanya kurnala <kkc4al@gmail.com> writes:\n\n>    I working on Git Notes. I want to know if there is an easy way to\n> obtain a list of all \"namespaces\"(For eg., git notes --ref=namespace\n> ... ) with notes objects in a specific git repository. We can easily\n> create, edit, merge git notes with commands if we know the namespaces\n> and/or the sha. But, for example, Has anyone tried to search for a\n> string in a git notes objects for that project etc?\n>   The closest i can think of is using some options with git logs, for\n> example, git log --show-notes=*  --format=\"%H %N\" etc.\n>\n> Appreciate your time.\n\nAn easy way to list everything in refs/notes/ is\n\n  git for-each-ref refs/notes/\n\nbut that of course won't figure out if you have more notes e.g. in\nrefs/remotes/origin/notes/* or some such.  I think this more general\nproblem can be solved only by heuristics, since the notes trees are\nactually \"just trees\" -- the only distinction is that they have fairly\nfunny filenames in them.\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n"}]}