2

How can I invert

git log --author=me 

to get all commits which are not from me?

Edit: I can not use Perl OS: Windows 7, Git Version: 1.9.4

ToBe
  • 921
  • 1
  • 9
  • 23
  • possible duplicate of [equivalence of: git log --exclude-author?](http://stackoverflow.com/questions/6889830/equivalence-of-git-log-exclude-author) – Chris Maes Mar 18 '15 at 09:48
  • The difference is: I can not use Perl regexes. – ToBe Mar 18 '15 at 10:14

1 Answers1

3

as you can see in this anwser, you could use a perl regex:

git log --perl-regexp --author='^((?!excluded-author-regex).*)$'

EDIT a hack if you cannot use perl:

git log --oneline --pretty=format:"%h %an %s" | grep -v "Author Name"
Community
  • 1
  • 1
Chris Maes
  • 35,025
  • 12
  • 111
  • 136