Skip to content

Commit 2b772cd

Browse files
committed
Exclude author from logs
1 parent e6bbc59 commit 2b772cd

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
152152
* [Preformatted patch file.](#preformatted-patch-file)
153153
* [Get the repo name.](#get-the-repo-name)
154154
* [logs between date range](#logs-between-date-range)
155+
* [Exclude author from logs](#exclude-author-from-logs)
155156

156157
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
157158
<!-- @doxie.inject end toc -->
@@ -1038,5 +1039,11 @@ git rev-parse --show-toplevel
10381039
git log --since='FEB 1 2017' --until='FEB 14 2017'
10391040
```
10401041

1042+
## Exclude author from logs
1043+
```sh
1044+
git log --perl-regexp --author='^((?!excluded-author-regex).*)
1045+
1046+
```
1047+
10411048
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
10421049
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,4 +446,7 @@
446446
}, {
447447
"title": "logs between date range",
448448
"tip": "git log --since='FEB 1 2017' --until='FEB 14 2017'"
449+
}, {
450+
"title": "Exclude author from logs",
451+
"tip": "git log --perl-regexp --author='^((?!excluded-author-regex).*)$'"
449452
}]

0 commit comments

Comments
 (0)