Say I'm in the master branch, I only want to grep words from certain commits but those words are still in the master branch. In other words, I want to find those words added in certain commits and still exist.
Ex,
commit 76894a679551e1c9e98593219033a2cf115b163d (HEAD -> master)
Change to fruit
-Apple apple dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.
+Banana apple dolor apple amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.
commit e3e0a64cf46cbe49eea17205f679e98ca213a50b
Change to apple
-Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.
+Apple apple dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.
commit 71b609da3fe64092dd598a69e36770eb5636afec
Init
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.
(END)
I want to find out the apple added in 76894 so only the quoted is I'm looking for,
Banana "apple" dolor apple amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.
not Banana apple dolor "apple" amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.