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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 11, 2020, 19:19 UTC
Message-ID
<xmqqk0x0nmto.fsf@gitster.c.googlers.com>
In-Reply-To
<45EB4E9E-1819-41D6-839E-A3812456478C@gmail.com>
Philippe Blain <levraiphilippeblain@gmail.com> writes:
> I understand, but I would argue that such a user could easily adapt their
> script to add '--no-recurse-submodules' to their ls-files invocation if that 
> is the case, no ?

It would have been quite a different story if we were designing "ls-files" and adding support for "--[no-]recurse-submodules" and "submodule.recurse" to the command at the same time. To those who write scripts with "ls-files" and complain that the command behaves differently depending on the configuration, you can legitimately say "you can use --no-recurse-submodules and you are fine" in that case.

But not after all these years. The same statement becomes "even if I broke the command, users could work around the breakage I caused". That is nothing more than a lame excuse that does not explay why you think you have the right to break their script in the first place.

So, no, I am not enthused to see this change. Regardless of which configuration variable affects the feature. For those who wrote and use scripts that run ls-files, it is a regression to invite unneeded complaints from their end-users who suddenly see the breakage in the scripts.

Previous: Philippe BlainNext: Đoàn Trần Công Danh
Message 7 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.