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

Re: What's cooking in git.git (Oct 2025, #12; Thu, 30)

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 3, 2025, 20:10 UTC
Message-ID
<xmqq7bw6ubaw.fsf@gitster.g>
In-Reply-To
<xmqqh5vbt0sf.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
> Bisect points at 054f5f45 (ref-filter: parse objects on demand,
> 2025-10-23), which is unfortunate, as that is the motivating step of
> the whole topic.

Here is a fairly simple reproduction. It appears that this does not require the refs to be packed (i.e., "t7004-tag.sh -i -v" fails after saying "*** Loose ***" here, without moving to the packed test).

 t/t7004-tag.sh | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
diff --git c/t/t7004-tag.sh w/t/t7004-tag.sh
index 10835631ca..7216a8d21c 100755
--- c/t/t7004-tag.sh
+++ w/t/t7004-tag.sh
@@ -2332,4 +2332,25 @@ test_expect_success 'If tag cannot be created then tag message file is not unlin
 	test_path_exists .git/TAG_EDITMSG
 '
 
+test_expect_success 'annotated tag version sort' '
+	git tag -a -m "sample 1.0" vsample-1.0 &&
+	git tag -a -m "sample 2.0" vsample-2.0 &&
+	git tag -a -m "sample 10.0" vsample-10.0 &&
+	cat >expect <<-EOF &&
+	vsample-1.0
+	vsample-2.0
+	vsample-10.0
+	EOF
+
+	echo "*** Loose ***" &&
+	git tag --list --sort=version:tag vsample-\* >actual &&
+	test_cmp expect actual &&
+
+	echo "*** Packed ***" &&
+	git pack-refs --all &&
+	git tag --list --sort=version:tag vsample-\* &&
+	test_cmp expect actual
+'
+
+
 test_done
Previous: Junio C HamanoNext: Jeff King
Message 8 of 10 in “What's cooking in git.git (Oct 2025, #12; Thu, 30)”
  1. Junio C HamanoOct 30, 2025
  2. Patrick SteinhardtOct 31, 2025
  3. Junio C HamanoOct 31, 2025
  4. Eric SunshineOct 31, 2025
  5. Lucas Seiki OshiroNov 3, 2025
  6. Junio C HamanoNov 3, 2025
  7. Junio C HamanoNov 3, 2025
  8. Junio C HamanoNov 3, 2025
  9. Jeff KingNov 3, 2025
  10. Patrick SteinhardtNov 4, 2025

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.