Thread (5 messages) flat view 5 messages, 4 authors, 2021-06-03

Re: Request feature: –no-submodule

From: Ilias Apostolou <hidden>
Date: 2021-06-03 10:48:46

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:
On Thu, Jun 03, 2021 at 09:55:57AM +0900, Junio C Hamano wrote:
quoted
Taylor Blau [off-list ref] writes:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help