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

Re: [PATCH] ls-files: respect 'submodule.recurse' config

From
Philippe Blain <levraiphilippeblain@gmail.com>
Date
Sep 11, 2020, 13:11 UTC
Message-ID
<3384182A-89F6-45A4-AD65-57B0E2B95FFA@gmail.com>
In-Reply-To
<xmqqmu1ys09f.fsf@gitster.c.googlers.com>
Show 13 quoted lines
> Le 10 sept. 2020 à 00:50, Junio C Hamano <gitster@pobox.com> a écrit :
> 
> Junio C Hamano <gitster@pobox.com> writes:
> 
>> So, no.  I am not enthused to see this change.
> 
> A more relevant question to ask you is what the motivation behind
> this change is.  
> 
> If it is an apparent "inconsistency" that the plumbing command in
> question takes an explicit command line option but ignores user
> configuration, then we can stop there---I think we would want to
> keep it that way.

Yes, in part this (and as I said in my previous email, to bring the code in line with 'gitsubmodules(7)').

Show 8 quoted lines
> But if it is because "I use this command interactively quite often,
> and I find it inconvenient because I need to type the long command
> line option", we may want to step back and understand why you need
> to run the low level plumbing command in your interactive use case.
> Perhaps most, but not quite all, of your need, whatever it is, is
> already satisfied by higher level commands (like "status"?) and what
> we need is to enrich these end-user facing higher level commands to
> fill the "gap" to satisfy the need in your use case.

Yes, I use ls-files interactively quite often. For example, I know a source file is named 'such_and_such' but I don't remember where in the directory hierarchy of the project it is located, so `git ls-files **/such_and_such` is the quickest way to find it (and I have to then add '--recurse-submodules' when I get no results, remember that the file in in a submodule, and rerun the command). So I use it mostly as a Git-aware find(1) replacement.

Previous: Junio C HamanoNext: Philippe Blain
Message 4 of 10 in “ls-files: respect 'submodule.recurse' config”
  1. ls-files: respect 'submodule.recurse' configPhilippe Blain via GitGitGadget, Sep 10, 2020
  2. Junio C HamanoSep 10, 2020
  3. Junio C HamanoSep 10, 2020
  4. Philippe BlainSep 11, 2020
  5. Philippe BlainSep 11, 2020
  6. Philippe BlainSep 11, 2020
  7. Junio C HamanoSep 11, 2020
  8. Đoàn Trần Công DanhSep 13, 2020
  9. Đoàn Trần Công DanhSep 13, 2020
  10. Philippe BlainSep 11, 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.