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

Re: notes metadata?

From
Johan Herland <johan@herland.net>
Date
Feb 7, 2010, 22:57 UTC
Message-ID
<201002072357.24021.johan@herland.net>
In-Reply-To
<cb7bb73a1002070350j750287abl43de4d936a47acef@mail.gmail.com>
On Sunday 07 February 2010, Giuseppe Bilotta wrote:
Show 17 quoted lines
> Hello all,
> 
> ok, this may sound a little odd especially with the 'notes vs
> metadata' thread going on, but I was wondering: do we store _any_ kind
> of metadata _about_ the notes themselves? If I'm reading the code
> correctly, we have neither author nor date information about the notes
> themselves, so we don't know who added them or when. Is it too late to
> suggest that this kind of metadata be added to notes? Making them
> full-blown commit-style objects is probalby overengineered and wrong
> under many points of view (not to mention probably incompatible with
> current storage), but maybe we can set up a convention that notes
> SHOULD be in pseudo-mbox format? This would mean that when a note is
> created, the template starts with a 'From ' line including the user's
> name &  email and note creation date; when editing, the note is again
> augmented with the new author name email and date. Of course the users
> are then free do expunge the From lines if they don't want it (just
> commenting it would be enough, of course). How does the idea sound?
NAK

Notes are stored in a notes tree that is changed by making commits on the notes ref (see commit_notes() in builtin-notes.c in 'pu'). The commits on the notes ref are regular commits with the usual commit metadata (author, date, etc.), so if you're interested in who/when a given note was written, you can simply point 'git (gui) blame' at the notes tree.

...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Jon SeymourNext: Giuseppe Bilotta
Message 3 of 4 in “notes metadata?”
  1. Giuseppe BilottaFeb 7, 2010
  2. Jon SeymourFeb 7, 2010
  3. Johan HerlandFeb 7, 2010
  4. Giuseppe BilottaFeb 8, 2010

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.