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

Re: notes TODOs

From
Jakub Narebski <jnareb@gmail.com>
Date
Feb 7, 2010, 19:05 UTC
Message-ID
<201002072005.05832.jnareb@gmail.com>
In-Reply-To
<7vr5oy2qh3.fsf@alter.siamese.dyndns.org>
On Sat, 6 Feb 2010, Junio C Hamano wrote:
Show 11 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes:
> 
> >   'git notes' move [-f] <oldobject> <newobject>
> 
> I suspect "copy" to keep the old one than "move" would be a lot more
> sensible, especially when you are talking about people (like me) who amend
> often.  They cannot get it right in their first try by definition ;-), and
> their very original edition is sometimes easier to start from than their
> second edition, when they are trying to come up with the final edition of
> the commit.  Using "move" to lose the notes from the old object will make
> it harder to go back to the original and start amending from there.

True. It would be better then to have "git notes copy ...", and perhaps even a configuration option to have --amend copy notes to new version automatically.

You can always get note before move with
  GIT_NOTES_REF=refs/notes/commit^ <git command>

(assuming that you use default notes ref). But that would work for "git show", but not for "git log --walk-reflogs".

P.S. I have tried to use 'git notes edit v1.6.6.1', and while it annotates a tag object, the message in editor make it look like you are annotating the commit it points to.

-- 
Jakub Narebski
Poland
Previous: Junio C Hamano
Message 7 of 7 in “notes TODOs (was: Re: [PATCH 1/4] gitweb: notes feature)”
  1. Giuseppe BilottaFeb 5, 2010
  2. Johan HerlandFeb 5, 2010
  3. Jakub NarebskiFeb 5, 2010
  4. Giuseppe BilottaFeb 5, 2010
  5. Jakub NarebskiFeb 6, 2010
  6. Junio C HamanoFeb 6, 2010
  7. Jakub NarebskiFeb 7, 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.