[PATCH 16/21] list-files: do not show duplicate cached entries

2015-02-08 Thread Nguyễn Thái Ngọc Duy
With the current show_files() list-files -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

[PATCH 16/21] list-files: do not show duplicate cached entries

2015-01-25 Thread Nguyễn Thái Ngọc Duy
With the current show_files() list-files -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