From: Thomas Rast <trast@student.ethz.ch>
To: krishna chaitanya kurnala <kkc4al@gmail.com>
Cc: <git@vger.kernel.org>
Subject: Re: Git Notes - Search Functionality
Date: Wed, 27 Feb 2013 16:57:46 +0100 [thread overview]
Message-ID: <874ngxagw5.fsf@pctrast.inf.ethz.ch> (raw)
In-Reply-To: <CAFZnXLJCiq4G+_ZStWmjAGePWCD6mhske7Y4=oe2h==F0BYVLQ@mail.gmail.com> (krishna chaitanya kurnala's message of "Wed, 27 Feb 2013 07:34:58 -0800")
krishna chaitanya kurnala <kkc4al@gmail.com> writes:
> 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.
An easy way to list everything in refs/notes/ is
git for-each-ref refs/notes/
but that of course won't figure out if you have more notes e.g. in
refs/remotes/origin/notes/* or some such. I think this more general
problem can be solved only by heuristics, since the notes trees are
actually "just trees" -- the only distinction is that they have fairly
funny filenames in them.
--
Thomas Rast
trast@{inf,student}.ethz.ch
prev parent reply other threads:[~2013-02-27 15:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-27 15:34 Git Notes - Search Functionality krishna chaitanya kurnala
2013-02-27 15:44 ` Johan Herland
2013-02-27 15:57 ` Thomas Rast [this message]
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=874ngxagw5.fsf@pctrast.inf.ethz.ch \
--to=trast@student.ethz.ch \
--cc=git@vger.kernel.org \
--cc=kkc4al@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).