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

Re: [PATCH 2/2] fast-import: introduce "feature notes" command

From
Thomas Rast <trast@student.ethz.ch>
Date
Feb 2, 2011, 19:47 UTC
Message-ID
<201102022047.55152.trast@student.ethz.ch>
In-Reply-To
<20110202050735.GE15285@elie>
Jonathan Nieder wrote:
Show 13 quoted lines
> 
> Support for importing notes was added to git fast-import quite a while
> ago (v1.6.6-rc0~21^2~8, 2009-10-09), before the 'feature' facility was
> introduced (v1.7.0-rc0~95^2~4, fast-import: add feature command,
> 2009-12-04) so for compatibility with older git versions, authors
> of existing frontends should not start using the "feature notes"
> command.  Most git versions in wide use support notemodify already.
> 
> The purpose of the "feature notes" declaration is instead to
> distinguish between git and fast-import backends that do not support
> notemodify.  In git "feature notes" will be a no-op while in other
> current fast-import backends it will error out with a clear error
> message.

So in summary, don't use "feature notes" because it would fail with old gits, but do use "feature notes" because it will fail for non-git?

Isn't that a bit backwards? I mean, a tool author would either just use it and say "if it doesn't read this, upgrade your git" or run

  echo feature notes | scm fast-import

to test, and use notes depending on success. In both cases old gits will be regarded as incompatible. Or am I missing something?

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Jonathan NiederNext: Sverre Rabbelier
Message 4 of 10 in “fast-import: introduce "feature notes" command”
  1. 0/2 fast-import: introduce "feature notes" commandJonathan Nieder, Feb 2, 2011
  2. 1/2 Documentation/fast-import: explain how to remove a noteJonathan Nieder, Feb 2, 2011
  3. 2/2 fast-import: introduce "feature notes" commandJonathan Nieder, Feb 2, 2011
  4. Thomas RastFeb 2, 2011
  5. Sverre RabbelierFeb 2, 2011
  6. Jonathan NiederFeb 2, 2011
  7. 0/2 fast-import: introduce "feature notes" commandJonathan Nieder, Feb 9, 2011
  8. 1/2 fast-import: clarify documentation of "feature" commandJonathan Nieder, Feb 9, 2011
  9. 2/2 fast-import: introduce "feature notes" commandJonathan Nieder, Feb 9, 2011
  10. Sverre RabbelierFeb 9, 2011

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.