From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: git help please: I want a git log with --author!=. Date: Mon, 03 Jun 2019 10:54:31 +0100 Message-ID: <87zhmzc7u0.fsf@tcd.ie> References: <20190603091424.GA5338@ACM> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="78979"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 03 11:54:47 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 1hXjfw-000KPd-Oc for ged-emacs-devel@m.gmane.org; Mon, 03 Jun 2019 11:54:44 +0200 Original-Received: from localhost ([127.0.0.1]:60671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXjfv-0007LX-Jm for ged-emacs-devel@m.gmane.org; Mon, 03 Jun 2019 05:54:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXjfp-0007LM-GM for emacs-devel@gnu.org; Mon, 03 Jun 2019 05:54:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXjfo-0005mD-6u for emacs-devel@gnu.org; Mon, 03 Jun 2019 05:54:37 -0400 Original-Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]:47010) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hXjfn-0005iN-Qs for emacs-devel@gnu.org; Mon, 03 Jun 2019 05:54:36 -0400 Original-Received: by mail-ed1-x541.google.com with SMTP id h10so10643517edi.13 for ; Mon, 03 Jun 2019 02:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=zB6qO3dXmKSX1CIAoPvyBKugC6hCbRUHXDPtVuY3zTE=; b=KHLVDnPBu9SCVt+74TxrONIKY8Kt37scN1Nh6aTTm2Nl9TqR4G/WeoxgFM7QmaqcHD uPGWVZPSuqxXdPgqQWmcH9x91BbVtvZkDq/5sl9Fv9P4uNXKh2XrYP2mnKdk6oEaFhqp Oli46sEyuHwcmdi3SGLXQgtURlNyrYw+LQIIHlqi8+J2G/jFX9oAvy1P745PuRdFz07T LBn1U+PPw4f643M9rt2DYm3WJbKflnaofeLTtsNyZZ6IWp4CrEibMdSCtgCjGKp6dpGF WXN+j5z6sAwJREUwqzHallh5fq0wB8GdgACfFSGf07ZeGH2IK48Gqq9Qz27Q46txg5q4 SGGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=zB6qO3dXmKSX1CIAoPvyBKugC6hCbRUHXDPtVuY3zTE=; b=ZDFgmDarUjJefOVxLrJxwzHF3IR/UU+X/b7LOLd0i3ZqQYeY0gfgSVXBq1hilEv4id MCJEeJTxrPZ1BhjMMQ8ZpgupOomrijjSRAMGwEuCPb9BeVFl7H5B0U42Zo1WxgS+Eo7b 1O5LDX87Aiei4+NAyK26c+U1hCPT+BdUNwzy3DAnusWvYc85+1N/sQlGrb/E5CLQ4Fkf S9QdmeZLjn6ZFg/KnXJk8EqZ8kO8RK905GkFOv0mvsOMJ6xG8W0Ggrqa5dZ3NxH0pExs rlnsYRIAyVII7jGpg61zfqg6gCOc8IfZr99SFBuX1feM2yQP8q6mwTLRlLgXhvQUHRIY pGdw== X-Gm-Message-State: APjAAAVjvPLmI7RygZrWDStySTJObvtw9jxyNCUqW1E7Fp97MwVJ3rIt dudakvwYC08SMow+sMRULbdGV5fGtao= X-Google-Smtp-Source: APXvYqwzwbMU2baW4f5A0urlZ8cSTZNiegqR+E3q4HN84mVGJJiyxGys5KHi6Y1OU0+ch3sHt/u7FA== X-Received: by 2002:a17:906:7ad7:: with SMTP id k23mr22960161ejo.0.1559555673714; Mon, 03 Jun 2019 02:54:33 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:6fa:38d6:1fce:ddb3]) by smtp.gmail.com with ESMTPSA id y4sm69118edb.64.2019.06.03.02.54.32 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 03 Jun 2019 02:54:33 -0700 (PDT) In-Reply-To: <20190603091424.GA5338@ACM> (Alan Mackenzie's message of "Mon, 3 Jun 2019 09:14:24 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::541 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:237217 Archived-At: Alan Mackenzie 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