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

Re: Request feature: –no-submodule

From
Ilias Apostolou <ilias.apostolou.zero@gmail.com>
Date
Jun 3, 2021, 10:48 UTC
Message-ID
<9cc98ca3-bdc5-61bf-450a-99bb47673d6c@gmail.com>
In-Reply-To
<YLg/dLqYFEqHZJUn@nand.local>

The reason we need to list all of the true files (except submodules) is for code refactoring using the sed unility, for example:

git ls-files | grep -Ev '(png$|ico$)' | xargs sed -i 's/\r\n/\n/'
All of the other alternatives we could think of are very ugly.
On 3/6/2021 5:33 π.μ., Taylor Blau wrote:
Show 7 quoted lines
> On Thu, Jun 03, 2021 at 09:55:57AM +0900, Junio C Hamano wrote:
>> Taylor Blau <me@ttaylorr.com> writes:
>>
>>> In all honesty, though this seems like a niche request for ls-files to
>>> fulfill, ls-files already has quite the collection of options, so I
>>> wouldn't be sad to see it learn how to do this, too.
>> I would be somewhat sad for two reasons.

In my opinion, this should be a feature for "ls-files" only, since it would be nice to have a clean stream of true files.

Thank you for your replies, Ilias

Previous: Taylor BlauNext: Junio C Hamano
Message 5 of 12 in “Request feature: –no-submodule”
  1. Ilias ApostolouJun 2, 2021
  2. Taylor BlauJun 2, 2021
  3. Junio C HamanoJun 3, 2021
  4. Taylor BlauJun 3, 2021
  5. Ilias ApostolouJun 3, 2021
  6. Junio C HamanoJun 3, 2021
  7. Junio C HamanoJun 3, 2021
  8. Jeff KingJun 3, 2021
  9. Junio C HamanoJun 3, 2021
  10. Jeff KingJun 4, 2021
  11. Junio C HamanoJun 4, 2021
  12. Ilias ApostolouJun 5, 2021

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.