changeset 2403:f5347f511cb3

To search for string in commit messages.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Thu, 16 Jan 2020 13:42:03 +0200
parents 032327906671
children ba68f3bf0e48
files git.rst
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/git.rst	Thu Jan 16 13:32:54 2020 +0200
+++ b/git.rst	Thu Jan 16 13:42:03 2020 +0200
@@ -534,6 +534,11 @@
   $ git grep $PATT
   $ git grep -i $PATT -- '*.[ch]'
 
+To search for string in commit messages::
+
+  $ git log --grep $PATT
+  $ git log --grep $PATT --all
+
 To search in all history::
 
   $ git log -S$PATT