Skip to content

Commit 8a82792

Browse files
committed
searching.asc: mention that "git grep" can search the index as well
Signed-off-by: Robert P. J. Day <[email protected]>
1 parent dc3aeba commit 8a82792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/07-git-tools/sections/searching.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ We'll go through a few of them.
88
[[_git_grep]]
99
==== Git Grep
1010

11-
Git ships with a command called `grep` that allows you to easily search through any committed tree or the working directory for a string or regular expression.
11+
Git ships with a command called `grep` that allows you to easily search through any committed tree, the working directory or even the index for a string or regular expression.
1212
For the examples that follow, we'll search through the source code for Git itself.
1313

1414
By default, `git grep` will look through the files in your working directory.

0 commit comments

Comments
 (0)