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

git notes and git-commit

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Dec 10, 2010, 13:11 UTC
Message-ID
<AANLkTi=q1F7WEgH+dLKTHOKhsNVuhU=OeyJ2AsP7oW2G@mail.gmail.com>
Hi,

I have never used git-notes before, just have had a quick look over git-notes.txt so this may have already been discussed.

Isn't it more convenient to write/update notes when editing commit message? Jakub mentioned of "---" in the archive elsewhere. There's notes.rewriteRef for commit --amend. But if I amend a commit, I might as well change my notes. rewriteRef would not work with "git commit -c" either.

Another (probably silly) thing. Can I temporarily attach notes to HEAD? I could add up notes while working, the notes show up when I edit for commit message. I could make revise the notes a bit and commit. Then the notes are attached to a commit.

-- 
Duy
Next: Johan Herland
Message 1 of 4 in “git notes and git-commit”
  1. Nguyen Thai Ngoc DuyDec 10, 2010
  2. Johan HerlandDec 10, 2010
  3. Nguyen Thai Ngoc DuyDec 10, 2010
  4. Jonathan NiederDec 10, 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.