1
0
mirror of https://github.com/namibia/tips.git synced 2024-05-30 00:41:11 +00:00

Exclude author from logs

This commit is contained in:
Hemanth.HM 2017-01-16 22:07:20 +05:30
parent e6bbc59418
commit 2b772cda5b
2 changed files with 10 additions and 0 deletions

View File

@ -152,6 +152,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Preformatted patch file.](#preformatted-patch-file) * [Preformatted patch file.](#preformatted-patch-file)
* [Get the repo name.](#get-the-repo-name) * [Get the repo name.](#get-the-repo-name)
* [logs between date range](#logs-between-date-range) * [logs between date range](#logs-between-date-range)
* [Exclude author from logs](#exclude-author-from-logs)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. --> <!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc --> <!-- @doxie.inject end toc -->
@ -1038,5 +1039,11 @@ git rev-parse --show-toplevel
git log --since='FEB 1 2017' --until='FEB 14 2017' git log --since='FEB 1 2017' --until='FEB 14 2017'
``` ```
## Exclude author from logs
```sh
git log --perl-regexp --author='^((?!excluded-author-regex).*)
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. --> <!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end --> <!-- @doxie.inject end -->

View File

@ -446,4 +446,7 @@
}, { }, {
"title": "logs between date range", "title": "logs between date range",
"tip": "git log --since='FEB 1 2017' --until='FEB 14 2017'" "tip": "git log --since='FEB 1 2017' --until='FEB 14 2017'"
}, {
"title": "Exclude author from logs",
"tip": "git log --perl-regexp --author='^((?!excluded-author-regex).*)$'"
}] }]