From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Cenk =?utf-8?B?R8O8bmRvxJ9hbg==?= Newsgroups: gmane.emacs.devel Subject: Re: git help please: I want a git log with --author!=. Date: Mon, 03 Jun 2019 11:44:03 +0200 Message-ID: <87y32j80m4.fsf@gundogan.net> References: <20190603091424.GA5338@ACM> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="114640"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.2.0; emacs 26.2 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 03 14:59:27 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXmYh-000Tha-2X for ged-emacs-devel@m.gmane.org; Mon, 03 Jun 2019 14:59:27 +0200 Original-Received: from localhost ([127.0.0.1]:34852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXmYf-0001hk-BW for ged-emacs-devel@m.gmane.org; Mon, 03 Jun 2019 08:59:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXjVl-0004Jl-MZ for emacs-devel@gnu.org; Mon, 03 Jun 2019 05:44:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXjVg-0004w6-Ot for emacs-devel@gnu.org; Mon, 03 Jun 2019 05:44:11 -0400 Original-Received: from trantor.gundogan.net ([37.120.167.193]:59430 helo=mail.localdomain) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hXjVg-0004rV-6S for emacs-devel@gnu.org; Mon, 03 Jun 2019 05:44:08 -0400 Original-Received: from localhost (unknown [141.22.28.154]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mail.localdomain (Postfix) with ESMTPSA id E6C7A1C9D9 for ; Mon, 3 Jun 2019 11:34:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gundogan.net; s=201712; t=1559554496; bh=qve7uqGd/EGxX4pNgPTUv2ZXp3nxBx/DDQftTwkHI2A=; h=References:From:To:Subject:In-reply-to:Date:From; b=n/F6zbPXzwRCnC9iimb0YWvVs9zRfxDuP3LzR0z3NQjW8cWB3+QsuOP5IICjarTqg pZu2Jz24vnOjWoM8J2Payn3YcDG+m50rZBevoLaSInSE1mMAEylo8wAQpz9i8PVbMj Rn5IGFF48sibenfyABeKtkeKerCfmeNQVTzEMRfPzJiPCoXtJ2YLAI8FaYas9I4ETX rtMxlk1xCluPIhzMf0BOiA2y4DyFdimh6OdR4ULopvlUUQjylBjGd14nT2hiXBa0dr 0bFfcLlNmR/OT2izObv8ZdOHDnbp4DWgRrZ6dpSACAinLOJHaXP/eryC6uqnX9gyNm Ox0tXehsJhLRQ== In-reply-to: <20190603091424.GA5338@ACM> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 37.120.167.193 X-Mailman-Approved-At: Mon, 03 Jun 2019 08:48:59 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237219 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Alan, you could try --invert-grep. Does the following statement help? git log --author=3DMackenzie --invert-grep -- lisp/progmodes/cc-*.el Cheers, Cenk On Mon, Jun 03 2019 at 11:14 +0200, Alan Mackenzie wrote: > Hello, Emacs. > > 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=3DMackenzie -- 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=3DMackenzie -- lisp/progmodes/cc-*.el > > , but get exactly the same output as before. :-( > > ..... --author!=3DMackenzie ..... > > 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! =2D- Cenk G=C3=BCndo=C4=9Fan Hamburg University of Applied Sciences Dept. of Computer Science / Internet Technologies Group Berliner Tor 7, 20099 Hamburg, Germany Fon: +49 40 42875 - 8426 Mail: cenk.guendogan@haw-hamburg.de Web: https://www.inet.haw-hamburg.de/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEO3dMsPVVAdvZ+Oc2o9vC90TUhNIFAlz06+MACgkQo9vC90TU hNJeWw//VOE5eOKJOE9oErrZ+Tl964zB0Pa5Hj8Mj3zjQrb3iJ50+YS8Jsn1FI80 spaUXMLqlM7SRwL/M3CkB/Scpo3MWxdi6S4m1E+T+RkudqxhVF2CKiYClPFWaU5p aN7iQ8tGYG9NUDkevpJzn/OgGXztIvdDjwBK0W1rKPnOimSPHQ9PFgeVCJVwZZNN Kq+zJ761kcfftf8M2ubNHAHR6YmzrdiPTAwFY18F6uM25xbsSJZW98PWOoInxmlj LWMXMLOVHKfNgBsncn3F9IKS71kS958EEGsbCeSdJRVcXxByoGyV0QWmEhXAHnZA jvUnY629enVe49hIILRmxmZCDfSTK59So1hEcdDckhwvgwIwSZBs0Zz5GR0SAKq8 9wQNhqa7lu0FaeDNZD8S0w/R2yF1KTZzsFUX0J4UJB50SBXHr5D7d3izJI4tMBTG qoyQAXemsm+QwrNs8UI2Rpgt+uJ0Uff3z4cjpRjllKi/pe8Lr9OxVXTkDvGD7kfQ a4ejwfb0PsMDiIXgsf3FBknAsRqNH+R8hMElxdTA+pkvFDLvTd4E4b9x1a9uIpEF zCsiHKy+/0KwGNtmJ5WSfRRsfe1mX0RlSZRWCjVs+qkckdv7Fpm1/7u+B3o9vnDI 7KYMzvw1YCk5EaFSbjP99mAgVXQSrTewXyZG8xDGbO20vvJXOpw= =HdHu -----END PGP SIGNATURE----- --=-=-=--