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