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

Re: [RFC PATCH] notes: add prepend command

From
Taylor Blau <me@ttaylorr.com>
Date
Oct 23, 2024, 20:20 UTC
Message-ID
<ZxlahJygsRFcxDev@nand.local>
In-Reply-To
<20241023201430.986389-1-bence@ferdinandy.com>
On Wed, Oct 23, 2024 at 10:14:24PM +0200, Bence Ferdinandy wrote:
Show 9 quoted lines
> When a note is detailing commit history, it makes sense to keep the
> latest change on top, but unlike adding things at the bottom with
> "git notes append" this can only be done manually. Add a
>
>     git notes prepend
>
> command, which works exactly like the append command, except that it
> inserts the text before the current contents of the note instead of
> after.

Hmmm. I am not sure that I see the widespread need for such a tool. If this is specific to your use-case, I think a custom script and `$GIT_EDITOR` would do the trick.

Thanks, Taylor

Previous: Bence FerdinandyNext: Bence Ferdinandy
Message 2 of 5 in “notes: add prepend command”
  1. notes: add prepend commandBence Ferdinandy, Oct 23, 2024
  2. Taylor BlauOct 23, 2024
  3. Bence FerdinandyOct 23, 2024
  4. Đoàn Trần Công DanhOct 24, 2024
  5. Bence FerdinandyOct 26, 2024

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.