Re: [PATCH 7/8] ls-files: support --max-depth

2014-03-28 Thread Matthieu Moy
Duy Nguyen writes: > I'd rather go with no trailing slash by default and add -F (which > seems to be more than just '/') ... and then add a configuration variable to let users enable it by default. For GNU ls, I have "alias ls='ls -F --color=auto'" in my shell's configuration, but I cannot push

Re: [PATCH 7/8] ls-files: support --max-depth

2014-03-28 Thread Duy Nguyen
On Fri, Mar 28, 2014 at 8:52 PM, Matthieu Moy wrote: > Duy Nguyen writes: > >> I'd rather go with no trailing slash by default and add -F (which >> seems to be more than just '/') > > ... and then add a configuration variable to let users enable it by > default. > > For GNU ls, I have "alias ls='

Re: [PATCH 7/8] ls-files: support --max-depth

2014-03-28 Thread Duy Nguyen
On Fri, Mar 28, 2014 at 9:15 PM, Duy Nguyen wrote: > On Fri, Mar 28, 2014 at 8:52 PM, Matthieu Moy > wrote: >> Duy Nguyen writes: >> >>> I'd rather go with no trailing slash by default and add -F (which >>> seems to be more than just '/') >> >> ... and then add a configuration variable to let us

Re: [PATCH 7/8] ls-files: support --max-depth

2014-03-27 Thread Duy Nguyen
On Tue, Mar 25, 2014 at 6:15 PM, Duy Nguyen wrote: > On Tue, Mar 25, 2014 at 3:55 PM, Matthieu Moy > wrote: >> - Original Message - >>> The use case in mind is --max-depth=0 to stop recursion. With this we can do >>> >>> git config --global alias.ls 'ls-files --column --color --max-depth=

Re: [PATCH 7/8] ls-files: support --max-depth

2014-03-25 Thread Duy Nguyen
On Tue, Mar 25, 2014 at 3:55 PM, Matthieu Moy wrote: > - Original Message - >> The use case in mind is --max-depth=0 to stop recursion. With this we can do >> >> git config --global alias.ls 'ls-files --column --color --max-depth=0' >> >> and have "git ls" with an output very similar to GN

Re: [PATCH 7/8] ls-files: support --max-depth

2014-03-25 Thread Matthieu Moy
- Original Message - > The use case in mind is --max-depth=0 to stop recursion. With this we can do > > git config --global alias.ls 'ls-files --column --color --max-depth=0' > > and have "git ls" with an output very similar to GNU ls. One big difference though: your "git ls" does not sh

[PATCH 7/8] ls-files: support --max-depth

2014-03-20 Thread Nguyễn Thái Ngọc Duy
The use case in mind is --max-depth=0 to stop recursion. With this we can do git config --global alias.ls 'ls-files --column --color --max-depth=0' and have "git ls" with an output very similar to GNU ls. Another interesting one is git config --global alias.lso 'ls-files --column --color --max-d