[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: git help please: I want a git log with --author!=<name>.
From: |
Basil L. Contovounesios |
Subject: |
Re: git help please: I want a git log with --author!=<name>. |
Date: |
Mon, 03 Jun 2019 10:54:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Alan Mackenzie <address@hidden> writes:
> I would like to get a git log of all commits to cc-*.el which weren't
> made by me. A kind of negative of:
>
> git log --author=Mackenzie -- lisp/progmodes/cc-*.el
>
> . Scanning the git-log manual page hasn't been helpful. The only thing
> possibly relevant is --not, but this is essentially undocumented (the
> man page doesn't say what it does). So I try:
>
> git log --not --author=Mackenzie -- lisp/progmodes/cc-*.el
>
> , but get exactly the same output as before. :-(
>
> ..... --author!=Mackenzie .....
>
> is just a syntax error.
>
> Now I could write an AWK script to filter the output from git log to get
> what I want, but I think I really shouldn't have to.
>
> Would somebody please tell me how to get what I want from git log, or
> tell me that it can't be done. Thanks!
It seems to be possible with --invert-grep[1]:
git log --author=Mackenzie --invert-grep -- lisp/progmodes/cc-*.el
[1]: https://stackoverflow.com/q/6889830/3084001
--
Basil