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

[PATCH 1/2] Documentation/fast-import: explain how to remove a note

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Feb 2, 2011, 05:00 UTC
Message-ID
<20110202050022.GD15285@elie>
In-Reply-To
<20110202045826.GC15285@elie>

A notemodify (N) command with blob id consisting of 40 zeroes (so is_null_sha1 is true) means to not add a note to replace the existing, removed one.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
 Documentation/git-fast-import.txt |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/git-fast-import.txt b/Documentation/git-fast-import.txt
index 4415e63..086b14f 100644
--- a/Documentation/git-fast-import.txt
+++ b/Documentation/git-fast-import.txt
@@ -651,9 +651,9 @@ External data format::
 	'N' SP <dataref> SP <committish> LF
 ....
 +
-Here `<dataref>` can be either a mark reference (`:<idnum>`)
-set by a prior `blob` command, or a full 40-byte SHA-1 of an
-existing Git blob object.
+Here `<dataref>` can be a mark reference (`:<idnum>`)
+set by a prior `blob` command, a full 40-byte SHA-1 of an
+existing Git blob object, or 40 zeroes, to remove a note.
 
 Inline data format::
 	The data content for the note has not been supplied yet.
-- 
1.7.2.3
Previous: Jonathan NiederNext: Jonathan Nieder
Message 2 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.