Re: [PATCH v2 16/17] ls: do not show duplicate cached entries

2014-03-27 Thread Eric Sunshine
On Wed, Mar 26, 2014 at 9:48 AM, Nguyễn Thái Ngọc Duy wrote: > With the current show_files() "ls -tcm" will show > > foo.c > M foo.c > > The first item is redundant. If "foo.c" is modified, we know it's in > the cache. Introduce show_files_compact to do that because ls-files is > plumbing and sc

[PATCH v2 16/17] ls: do not show duplicate cached entries

2014-03-26 Thread Nguyễn Thái Ngọc Duy
With the current show_files() "ls -tcm" will show foo.c M foo.c The first item is redundant. If "foo.c" is modified, we know it's in the cache. Introduce show_files_compact to do that because ls-files is plumbing and scripts may already depend on current display behavior. Another difference in