Skip to content

list-files redesign

Nguyễn Thái Ngọc Duy git 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest25 patches 10 repliesIn review
  2. v116 patches 12 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25ls_colors.c: add $LS_COLORS parsing codeMakefile color.h ls_colors.c+407 -00 replies
2/25ls_colors.c: parse color.ls.* from config fileDocumentation/config.txt ls_colors.c+40 -10 replies
3/25ls_colors.c: add a function to color a file namecolor.h ls_colors.c+68 -00 replies
4/25ls_colors.c: highlight submodules like directoriesDocumentation/config.txt ls_colors.c+9 -20 replies
5/25list-files: command skeleton.gitignore Makefile builtin.h +3 more+146 -00 replies
6/25list-files: show paths relative to cwdbuiltin/list-files.c t/t7013-list-files.sh+32 -10 replies
7/25list-files: add tag to each entry, filter duplicate tagsbuiltin/list-files.c+63 -11 reply
8/25list-files: add --[no-]column, -C and -1builtin/list-files.c t/t7013-list-files.sh+48 -10 replies
9/25list-files: add --max-depth, -R and default to --max-depth=0builtin/list-files.c t/t7013-list-files.sh+40 -90 replies
10/25list-files: show directories as well as filesbuiltin/list-files.c t/t7013-list-files.sh+91 -60 replies
11/25list-files: add --colorbuiltin/list-files.c t/t7013-list-files.sh+73 -11 reply
12/25list-files: add -F/--classifybuiltin/list-files.c t/t7013-list-files.sh+40 -00 replies
13/25list-files: new indicator '&' for submodules when -F is usedbuiltin/list-files.c t/t7013-list-files.sh+3 -10 replies
14/25list-files: add --cached and --othersbuiltin/list-files.c t/t7013-list-files.sh+115 -20 replies
15/25list-files: add --ignoredbuiltin/list-files.c t/t7013-list-files.sh+31 -61 reply
16/25list-files: add --unmergedbuiltin/list-files.c t/t7013-list-files.sh+80 -51 reply
17/25list-files: add file modification options -[admADM]builtin/list-files.c t/t7013-list-files.sh wt-status.c +1 more+137 -71 reply
18/25list-files: delete redundant cached entriesbuiltin/list-files.c t/t7013-list-files.sh+22 -22 replies
19/25list-files: make alias 'ls' default to 'list-files'config.c+8 -00 replies
20/25list-files: preload indexbuiltin/list-files.c+1 -01 reply
21/25list-files: reduce match_pathspec calls in matched()builtin/list-files.c+37 -120 replies
22/25list-files: only do diff that is actually usefulbuiltin/list-files.c wt-status.c wt-status.h+22 -00 replies
23/25pathspec: move getenv() code out of prefix_pathspec()pathspec.c+27 -280 replies
24/25list-files: make :(glob) pathspec defaultbuiltin/list-files.c pathspec.c pathspec.h +1 more+12 -10 replies
25/25list-files: documentationDocumentation/git-list-files.txt+115 -01 reply

Reviews trailers per patch

None of the 25 patches has a Reviewed-by or Acked-by.

PatchMichael BlumeEric SunshineJunio C Hamano
1/25
2/25Helped-by
3/25
4/25
5/25
6/25
7/25
8/25
9/25
10/25Helped-by Helped-by
11/25
12/25
13/25
14/25
15/25
16/25
17/25
18/25Helped-by
19/25
20/25
21/25
22/25
23/25
24/25
25/25

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/25] list-files redesign

The UI part is the same (or nearly the same) with the last round. The internal data structure is reorignized to avoid abusing string_list. Tests and documentation are added back.

Nguyễn Thái Ngọc Duy (25):
ls_colors.c: add $LS_COLORS parsing code ls_colors.c: parse color.ls.* from config file ls_colors.c: add a function to color a file name ls_colors.c: highlight submodules like directories
list-files: command skeleton
list-files: show paths relative to cwd
list-files: add tag to each entry, filter duplicate tags
list-files: add --[no-]column, -C and -1
list-files: add --max-depth, -R and default to --max-depth=0
list-files: show directories as well as files
list-files: add --color
list-files: add -F/--classify
list-files: new indicator '&' for submodules when -F is used
list-files: add --cached and --others
list-files: add --ignored
list-files: add --unmerged
list-files: add file modification options -[admADM]
list-files: delete redundant cached entries
list-files: make alias 'ls' default to 'list-files'
list-files: preload index
list-files: reduce match_pathspec calls in matched()
list-files: only do diff that is actually useful
pathspec: move getenv() code out of prefix_pathspec()
list-files: make :(glob) pathspec default
list-files: documentation

 .gitignore                             |   1 +
 Documentation/config.txt               |  12 +
 Documentation/git-list-files.txt (new) | 115 +++++++
 Makefile                               |   2 +
 builtin.h                              |   1 +
 builtin/list-files.c (new)             | 581 +++++++++++++++++++++++++++++++++
 color.h                                |  10 +
 config.c                               |   8 +
 git.c                                  |   1 +
 ls_colors.c (new)                      | 498 ++++++++++++++++++++++++++++
 pathspec.c                             |  59 ++--
 pathspec.h                             |   1 +
 t/t7013-list-files.sh (new +x)         | 335 +++++++++++++++++++
 wt-status.c                            |  16 +-
 wt-status.h                            |   3 +
 15 files changed, 1612 insertions(+), 31 deletions(-)
 create mode 100644 Documentation/git-list-files.txt
 create mode 100644 builtin/list-files.c
 create mode 100644 ls_colors.c
 create mode 100755 t/t7013-list-files.sh
Signature · 1 line
2.3.0.rc1.137.g477eb31