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

[PATCH 1/2] fixup! notes remove: --ignore-missing

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
May 19, 2011, 18:47 UTC
Message-ID
<bdd14b3138e4d90de58945f25dcf33da027d9f07.1305830419.git.git@drmicha.warpmail.net>
In-Reply-To
<4DD4C73C.7020600@drmicha.warpmail.net>
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
---
 t/t3301-notes.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/t/t3301-notes.sh b/t/t3301-notes.sh
index 09cf6b2..1edb7bf 100755
--- a/t/t3301-notes.sh
+++ b/t/t3301-notes.sh
@@ -438,12 +438,13 @@ test_expect_success 'removing non-existing note should not create new commit' '
 test_expect_success 'removing more than one' '
 	before=$(git rev-parse --verify refs/notes/commits) &&
 	test_when_finished "git update-ref refs/notes/commits $before" &&
+	MSG=4 git notes add HEAD^ &&
 	git notes remove HEAD^^ HEAD^^^ &&
 	git diff --name-only refs/notes/commits^ refs/notes/commits >actual &&
 	test 2 = $(wc -l <actual) &&
 	git ls-tree -r --name-only refs/notes/commits >actual &&
-	>empty &&
-	test_cmp empty actual
+	git rev-parse HEAD^ >expect1 &&
+	test_cmp expect1 actual
 '
 
 test_expect_success 'removing is atomic' '
-- 
1.7.5.1.558.gc8bec
Previous: Junio C HamanoNext: Michael J Gruber
Message 7 of 17 in “"git notes remove" updates”
  1. 0/3 "git notes remove" updatesJunio C Hamano, May 19, 2011
  2. 1/3 notes remove: allow removing more than oneJunio C Hamano, May 19, 2011
  3. Michael J GruberMay 19, 2011
  4. Junio C HamanoMay 19, 2011
  5. Michael J GruberMay 19, 2011
  6. Junio C HamanoMay 19, 2011
  7. 1/2 fixup! notes remove: --ignore-missingMichael J Gruber, May 19, 2011
  8. 2/2 fixup! notes remove: --stdin reads from the standard inputMichael J Gruber, May 19, 2011
  9. 2/3 notes remove: --missing-okJunio C Hamano, May 19, 2011
  10. Junio C HamanoMay 19, 2011
  11. 3/3 notes remove: --stdin reads from the standard inputJunio C Hamano, May 19, 2011
  12. Michael J GruberMay 19, 2011
  13. Jeff KingMay 19, 2011
  14. Junio C HamanoMay 19, 2011
  15. Jeff KingMay 19, 2011
  16. 4/3 show: --ignore-missingJunio C Hamano, May 19, 2011
  17. Johan HerlandMay 19, 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.