nd/list-files updates
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest21 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/21 | ls_colors.c: add $LS_COLORS parsing codeMakefile color.h ls_colors.c | +407 | 0 replies | |
| 2/21 | ls_colors.c: parse color.ls.* from config fileDocumentation/ ls_colors.c | +40 | 0 replies | |
| 3/21 | ls_colors.c: add a function to color a file namecolor.h ls_colors.c | +68 | 0 replies | |
| 4/21 | ls_colors.c: highlight submodules like directoriesDocumentation/ ls_colors.c | +9 | 0 replies | |
| 5/21 | ls-files: buffer full item in strbuf before printingbuiltin/ | +35 | 0 replies | |
| 6/21 | ls-files: add --color to highlight file namesDocumentation/ builtin/ | +42 | 0 replies | |
| 7/21 | ls-files: add --columnDocumentation/ builtin/ | +34 | 0 replies | |
| 8/21 | ls-files: support --max-depthDocumentation/ builtin/ | +14 | 0 replies | |
| 9/21 | list-files: a user friendly version of ls-files and more.gitignore Documentation/ Documentation/ +4 more | +159 | 0 replies | |
| 10/21 | list-files: make alias 'ls' default to 'list-files'Documentation/ config.c | +10 | 0 replies | |
| 11/21 | list-files: -u does not imply showing stagesbuiltin/ | +1 | 0 replies | |
| 12/21 | list-files: add -R/--recursive short for --max-depth=-1Documentation/ builtin/ | +6 | 0 replies | |
| 13/21 | list-files: add -1 short for --no-columnDocumentation/ builtin/ | +5 | 0 replies | |
| 14/21 | list-files: add -t backDocumentation/ builtin/ | +23 | 0 replies | |
| 15/21 | list-files: sort output and remove duplicatesbuiltin/ | +24 | 0 replies | |
| 16/21 | list-files: do not show duplicate cached entriesbuiltin/ | +51 | 0 replies | |
| 17/21 | list-files: show directories as well as filesbuiltin/ | +60 | 1 reply | |
| 18/21 | list-files: add -F/--classifyDocumentation/ builtin/ | +37 | 0 replies | |
| 19/21 | list-files -F: show submodules with the new indicator '&'Documentation/ builtin/ | +4 | 0 replies | |
| 20/21 | list-files: -M aka diff-cachedbuiltin/ | +64 | 0 replies | |
| 21/21 | t3080: tests for git-list-filest/ | +134 | 0 replies |
Reviews trailers per patch
None of the 21 patches has a Reviewed-by or Acked-by.
| Patch | Junio C Hamano | Eric Sunshine | Michael Blume |
|---|---|---|---|
| 1/21 | |||
| 2/21 | Helped-by | ||
| 3/21 | |||
| 4/21 | |||
| 5/21 | |||
| 6/21 | |||
| 7/21 | |||
| 8/21 | |||
| 9/21 | Helped-by | ||
| 10/21 | |||
| 11/21 | |||
| 12/21 | |||
| 13/21 | |||
| 14/21 | |||
| 15/21 | |||
| 16/21 | |||
| 17/21 | Helped-by | Helped-by | |
| 18/21 | |||
| 19/21 | |||
| 20/21 | |||
| 21/21 | Helped-by |
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.
Cover letter [PATCH 00/21] nd/list-files updates
- 02/21: fix a bug that ignores config keys if $LS_COLORS is not defined
- 09/21: use listFiles instead of list-files in config keys
- 17/21: incorporate match_pathspec changes from Junio,
use strbuf_swap in show_as_directory()
- 21/21: use test_decode_color and test_when_finished in t3080
Full diff of changes is
-- 8< --
Documentation/config.txt +2 -2
@@ -940,7 +940,7 @@ color.status.<slot>:: to red). The values of these variables may be specified as in color.branch.<slot>. -color.list-files:: +color.listFiles:: A boolean to enable/disable color in the output of linkgit:git-list-files[1]. May be set to `always`, `false` (or `never`) or `auto` (or `true`), in which case colors are used
@@ -1018,7 +1018,7 @@ column.clean:: Specify the layout when list items in `git clean -i`, which always shows files and directories in columns. See `column.ui` for details. -column.list-files:: +column.listFiles:: Specify whether to output tag listing in `git list-files` in columns. See `column.ui` for details.
builtin/ls-files.c +30 -22
79 lines not on this page · raw message
ls_colors.c +3 -1
@@ -326,8 +326,10 @@ void parse_ls_color(void)char *start;size_t len; -if ((p =getenv ("LS_COLORS" )) ==NULL || *p =='\0' ) +if ((p =getenv ("LS_COLORS" )) ==NULL || *p =='\0' ) { +git_config (ls_colors_config,NULL );return ; + } ext =NULL ;strcpy (label,"??" );
t/t3080-list-files.sh +16 -4
@@ -15,16 +15,26 @@ test_expect_success 'setup' ' test_expect_success 'LS_COLORS env variable' ' LS_COLORS="rs=0:fi=31:di=32" \ - git list-files --color=always | grep -v gitlink >actual && - test_cmp "$TEST_DIRECTORY"/t3080/ls_colors actual + git list-files --color=always | test_decode_color | \ + grep -v gitlink >actual && + cat >expected <<-\EOF && + <GREEN>dir<RESET> + <RED>file<RESET> + EOF + test_cmp expected actual ' test_expect_success 'color.ls.*' ' test_config color.ls.file red && test_config color.ls.directory green && test_config color.ls.submodule yellow && - git list-files --color=always >actual && - test_cmp "$TEST_DIRECTORY"/t3080/color_ls actual + git list-files --color=always | test_decode_color >actual && + cat >expected <<-\EOF && + <GREEN>dir<RESET> + <RED>file<RESET> + <YELLOW>gitlink<RESET> + EOF + test_cmp expected actual ' test_expect_success 'column output' '
@@ -78,6 +88,7 @@ test_expect_success 'globbing' ' ' test_expect_success 'no dups' ' + test_when_finished "git checkout file" && echo dirty >>file && git list-files -m file >actual && echo "file" >expected &&
@@ -100,6 +111,7 @@ test_expect_success '--classify' ' ' test_expect_success 'diff-cached' ' + test_when_finished "git checkout file" && echo dirty >>file && git add file && git list-files -M >actual &&
t/t3080/color_ls deleted +0 -3
@@ -1,3 +0,0 @@ -[32mdir[m -[31mfile[m -[33mgitlink[m
t/t3080/ls_colors deleted +0 -2
@@ -1,2 +0,0 @@ -[32mdir[m -[31mfile[m
-- 8< --
Signature · 1 line
2.3.0.rc1.137.g477eb31