From 2b772cda5b8a968c856523307fa4fca821b5cad9 Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Mon, 16 Jan 2017 22:07:20 +0530 Subject: [PATCH] Exclude author from logs --- README.md | 7 +++++++ tips.json | 3 +++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 24a4ebe..6c76c23 100644 --- a/README.md +++ b/README.md @@ -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) * [Get the repo name.](#get-the-repo-name) * [logs between date range](#logs-between-date-range) +* [Exclude author from logs](#exclude-author-from-logs) @@ -1038,5 +1039,11 @@ git rev-parse --show-toplevel git log --since='FEB 1 2017' --until='FEB 14 2017' ``` +## Exclude author from logs +```sh +git log --perl-regexp --author='^((?!excluded-author-regex).*) + +``` + diff --git a/tips.json b/tips.json index 2daf36a..d27af25 100644 --- a/tips.json +++ b/tips.json @@ -446,4 +446,7 @@ }, { "title": "logs between date range", "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).*)$'" }] \ No newline at end of file