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

Re: [PATCH] gitsubmodules: add '--recurse-submodules' for 'ls-files'

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 4, 2020, 19:55 UTC
Message-ID
<xmqqo8lh7olc.fsf@gitster.c.googlers.com>
In-Reply-To
<pull.861.git.git.1601774257696.gitgitgadget@gmail.com>
"Philippe Blain via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 17 quoted lines
> @@ -246,20 +246,23 @@ Workflow for an artificially split repo
>    # regular commands recurse into submodules by default
>    git config --global submodule.recurse true
>  
> -  # Unlike the other commands below clone still needs
> +  # Unlike most other commands below, clone still needs
>    # its own recurse flag:
>    git clone --recurse <URL> <directory>
>    cd <directory>
>  
>    # Get to know the code:
>    git grep foo
> -  git ls-files
> +  git ls-files --recurse-submodules
> +
> +[NOTE]
> +`git ls-files` also requires its own `--recurse-submodules` flag.
Makes sense.  Thanks, will queue.
Previous: Philippe Blain via GitGitGadget
Message 2 of 2 in “gitsubmodules: add '--recurse-submodules' for 'ls-files'”
  1. gitsubmodules: add '--recurse-submodules' for 'ls-files'Philippe Blain via GitGitGadget, Oct 4, 2020
  2. Junio C HamanoOct 4, 2020

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.