Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git_grep [2018/05/24 09:42] – [SYNOPSIS] rpjdaygit_grep [2018/05/27 13:30] (current) – [Popular options] rpjday
Line 6: Line 6:
  
 <code> <code>
-git grep [-a | --text] [-I] [--textconv] [-i | --ignore-case] [-w | --word-regexp] +git grep  
-         [-v | --invert-match] [-h|-H] [--full-name] +  [-a | --text] [-I] [--textconv] [-i | --ignore-case] [-w | --word-regexp] 
-         [-E | --extended-regexp] [-G | --basic-regexp] +  [-v | --invert-match] [-h|-H] [--full-name] 
-         [-P | --perl-regexp] +  [-E | --extended-regexp] [-G | --basic-regexp] 
-         [-F | --fixed-strings] [-n | --line-number] +  [-P | --perl-regexp] 
-         [-l | --files-with-matches] [-L | --files-without-match] +  [-F | --fixed-strings] [-n | --line-number] 
-         [(-O | --open-files-in-pager) [<pager>]] +  [-l | --files-with-matches] [-L | --files-without-match] 
-         [-z | --null] +  [(-O | --open-files-in-pager) [<pager>]] 
-         [-c | --count] [--all-match] [-q | --quiet] +  [-z | --null] 
-         [--max-depth <depth>+  [-c | --count] [--all-match] [-q | --quiet] 
-         [--color[=<when>] | --no-color] +  [--max-depth <depth>
-         [--break] [--heading] [-p | --show-function] +  [--color[=<when>] | --no-color] 
-         [-A <post-context>] [-B <pre-context>] [-C <context>+  [--break] [--heading] [-p | --show-function] 
-         [-W | --function-context] +  [-A <post-context>] [-B <pre-context>] [-C <context>
-         [--threads <num>+  [-W | --function-context] 
-         [-f <file>] [-e] <pattern> +  [--threads <num>
-         [--and|--or|--not|(|)|-e <pattern>...] +  [-f <file>] [-e] <pattern> 
-         [--recurse-submodules] [--parent-basename <basename>+  [--and|--or|--not|(|)|-e <pattern>...] 
-         [ [--[no-]exclude-standard] [--cached | --no-index | --untracked] | <tree>...] +  [--recurse-submodules] [--parent-basename <basename>
-         [--] [<pathspec>...]+  [ [--[no-]exclude-standard] [--cached | --no-index | --untracked] | <tree>...] 
 +  [--] [<pathspec>...]
 </code> </code>
  
Line 40: Line 41:
  
 ===== Popular options ===== ===== Popular options =====
 +
 +In addition to many standard ''grep'' options:
  
 <code> <code>
Line 45: Line 48:
     Instead of searching tracked files in the working tree, search     Instead of searching tracked files in the working tree, search
     blobs registered in the index file.     blobs registered in the index file.
- 
---no-index 
-    Search files in the current directory that is not managed by Git. 
  
 --untracked --untracked
Line 56: Line 56:
     Also search in ignored files by not honoring the .gitignore     Also search in ignored files by not honoring the .gitignore
     mechanism. Only useful with --untracked.     mechanism. Only useful with --untracked.
- 
---exclude-standard 
-    Do not pay attention to ignored files specified via the 
-    .gitignore mechanism. Only useful when searching files in the 
-    current directory with --no-index. 
 </code> </code>
  
  • git_grep.1527154979.txt.gz
  • Last modified: 2018/05/24 09:42
  • by rpjday