git.rst
changeset 2402 032327906671
parent 2360 5179f42afc84
child 2403 f5347f511cb3
equal deleted inserted replaced
2401:7f6cf1952337 2402:032327906671
   541   $ git log -G$PATT
   541   $ git log -G$PATT
   542   $ git grep -i PATT $(git rev-list --all) -- '*.[ch]'
   542   $ git grep -i PATT $(git rev-list --all) -- '*.[ch]'
   543 
   543 
   544 .. note::
   544 .. note::
   545 
   545 
   546    ``-S`` search occurences in diff chunks, while ``-G`` detects changes in match count.
   546    ``-G`` search occurences in diff chunks, while ``-S`` detects changes in match count.
   547 
   547 
   548 https://git-scm.com/book/en/v2/Git-Tools-Searching
   548 https://git-scm.com/book/en/v2/Git-Tools-Searching
   549   Git Tools - Searching.
   549   Git Tools - Searching.
   550 https://stackoverflow.com/questions/1337320/how-to-grep-git-commit-diffs-or-contents-for-a-certain-word
   550 https://stackoverflow.com/questions/1337320/how-to-grep-git-commit-diffs-or-contents-for-a-certain-word
   551   How to grep Git commit diffs or contents for a certain word?
   551   How to grep Git commit diffs or contents for a certain word?