Skip to content

New config option for git-grep to include untracked files

Dragan Simic git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5grep: perform some minor code and comment cleanupsbuiltin/grep.c+8 -134 replies
2/5grep docs: describe --recurse-submodules further and improve formatting a bitDocumentation/config/grep.txt Documentation/git-grep.txt+4 -42 replies
3/5grep docs: describe --no-index furtherDocumentation/git-grep.txt+6 -42 replies
4/5grep: introduce new config option to include untracked filesbuiltin/grep.c t/t7810-grep.sh+12 -04 replies
5/5grep docs: describe new config option to include untracked filesDocumentation/config/grep.txt Documentation/git-grep.txt+8 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] New config option for git-grep to include untracked files

This patch series introduces new config option grep.includeUntracked, which makes the untracked files also searched by default when git-grep(1) is invoked, in addition to searching the tracked files. This is quite handy when someone expects git-grep(1) to mimic grep(1) even better, when it comes to the selection of searched files.

Setting grep.includeUntracked to true in one's git configuration should have no ill effects to various scripts, which presumably shouldn't rely on expensive operations such as git-grep(1).

This series also performs some related cleanups and small improvements, which are extracted into separate patches.

Dragan Simic (5):
grep: perform some minor code and comment cleanups grep docs: describe --recurse-submodules further and improve
formatting a bit
grep docs: describe --no-index further
grep: introduce new config option to include untracked files grep docs: describe new config option to include untracked files

 Documentation/config/grep.txt |  8 +++++++-
 Documentation/git-grep.txt    | 19 +++++++++++--------
 builtin/grep.c                | 24 +++++++++++-------------
 t/t7810-grep.sh               |  9 +++++++++
 4 files changed, 38 insertions(+), 22 deletions(-)