equal
deleted
inserted
replaced
531 |
531 |
532 To search string in all or specific files or working copy:: |
532 To search string in all or specific files or working copy:: |
533 |
533 |
534 $ git grep $PATT |
534 $ git grep $PATT |
535 $ git grep -i $PATT -- '*.[ch]' |
535 $ git grep -i $PATT -- '*.[ch]' |
|
536 |
|
537 To search for string in commit messages:: |
|
538 |
|
539 $ git log --grep $PATT |
|
540 $ git log --grep $PATT --all |
536 |
541 |
537 To search in all history:: |
542 To search in all history:: |
538 |
543 |
539 $ git log -S$PATT |
544 $ git log -S$PATT |
540 $ git log --pickaxe-regex=$PATT |
545 $ git log --pickaxe-regex=$PATT |