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

Re: [PATCH] ls-files: support --recurse-submodules --stage

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 21, 2022, 01:48 UTC
Message-ID
<xmqq35kdugzt.fsf@gitster.g>
In-Reply-To
<20220218223212.1139366-1-jonathantanmy@google.com>
Jonathan Tan <jonathantanmy@google.com> writes:
> +test_expect_success '--stage' '
> +	# In order to test hash abbreviation, write two objects that have the
> +	# same first 4 hexadecimal characters in their (SHA-1) hashes.

What about linux-sha256 jobs? e.g. https://github.com/git/git/runs/5267681569?check_suite_focus=true

Show 26 quoted lines
> +	echo brocdnra >submodule/c &&
> +	git -C submodule commit -am "update c" &&
> +	echo brigddsv >submodule/c &&
> +	git -C submodule commit -am "update c again" &&
> +
> +	cat >expect <<-\EOF &&
> +	100644 6da7 0	.gitmodules
> +	100644 7898 0	a
> +	100644 6178 0	b/b
> +	100644 dead9 0	submodule/c
> +	EOF
> +
> +	git ls-files --stage --recurse-submodules --abbrev=4 >actual &&
> +	test_cmp expect actual
> +'
> +
>  test_expect_success 'ls-files correctly outputs files in submodule with -z' '
>  	lf_to_nul >expect <<-\EOF &&
>  	.gitmodules
> @@ -292,7 +311,6 @@ test_incompatible_with_recurse_submodules () {
>  test_incompatible_with_recurse_submodules --deleted
>  test_incompatible_with_recurse_submodules --modified
>  test_incompatible_with_recurse_submodules --others
> -test_incompatible_with_recurse_submodules --stage
>  test_incompatible_with_recurse_submodules --killed
>  test_incompatible_with_recurse_submodules --unmerged
Previous: Jonathan TanNext: Taylor Blau
Message 8 of 10 in “ls-files: support --recurse-submodules --stage”
  1. ls-files: support --recurse-submodules --stageJonathan Tan, Feb 18, 2022
  2. Junio C HamanoFeb 19, 2022
  3. Ævar Arnfjörð BjarmasonFeb 19, 2022
  4. Taylor BlauFeb 19, 2022
  5. Junio C HamanoFeb 21, 2022
  6. Ævar Arnfjörð BjarmasonFeb 21, 2022
  7. Jonathan TanFeb 24, 2022
  8. Junio C HamanoFeb 21, 2022
  9. Taylor BlauFeb 21, 2022
  10. ls-files: support --recurse-submodules --stageJonathan Tan, Feb 24, 2022

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.