From 8a82792635fff6d9b2ca034cca5310515daf77ba Mon Sep 17 00:00:00 2001 From: "Robert P. J. Day" Date: Sat, 9 Jun 2018 07:10:22 -0400 Subject: [PATCH 1/2] searching.asc: mention that "git grep" can search the index as well Signed-off-by: Robert P. J. Day --- book/07-git-tools/sections/searching.asc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/07-git-tools/sections/searching.asc b/book/07-git-tools/sections/searching.asc index 0929bd516..bf7461486 100644 --- a/book/07-git-tools/sections/searching.asc +++ b/book/07-git-tools/sections/searching.asc @@ -8,7 +8,7 @@ We'll go through a few of them. [[_git_grep]] ==== Git Grep -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. +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. For the examples that follow, we'll search through the source code for Git itself. By default, `git grep` will look through the files in your working directory. From 6cc94f5f23ac353c39b539339c1fbeca80db2644 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Mon, 11 Jun 2018 10:28:50 -0700 Subject: [PATCH 2/2] Oxford --- book/07-git-tools/sections/searching.asc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/07-git-tools/sections/searching.asc b/book/07-git-tools/sections/searching.asc index bf7461486..dd025e437 100644 --- a/book/07-git-tools/sections/searching.asc +++ b/book/07-git-tools/sections/searching.asc @@ -8,7 +8,7 @@ We'll go through a few of them. [[_git_grep]] ==== Git Grep -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. +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. For the examples that follow, we'll search through the source code for Git itself. By default, `git grep` will look through the files in your working directory.