From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id B77E51F9E0 for ; Tue, 28 Apr 2020 21:04:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726491AbgD1VEk (ORCPT ); Tue, 28 Apr 2020 17:04:40 -0400 Received: from cloud.peff.net ([104.130.231.41]:43006 "HELO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726386AbgD1VEj (ORCPT ); Tue, 28 Apr 2020 17:04:39 -0400 Received: (qmail 23751 invoked by uid 109); 28 Apr 2020 21:04:39 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with SMTP; Tue, 28 Apr 2020 21:04:39 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 7140 invoked by uid 111); 28 Apr 2020 21:16:03 -0000 Received: from coredump.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Tue, 28 Apr 2020 17:16:03 -0400 Authentication-Results: peff.net; auth=none Date: Tue, 28 Apr 2020 17:04:38 -0400 From: Jeff King To: "Nixon, Francis A" Cc: "git@vger.kernel.org" Subject: Re: Git Log ignores --oneline and --pretty=oneline in combination with -L. Message-ID: <20200428210438.GD4000@coredump.intra.peff.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Tue, Apr 28, 2020 at 02:28:15PM +0000, Nixon, Francis A wrote: > Running `git log --pretty=oneline > -L:get_stack_map_frames:stackmapframes.rs`(filename/function names as > an example only, consistent across many files.) results on in correct > output but doesn't ouput in a oneline format(still includes the full > diffs). The "--oneline" option has nothing to do with the diff display; it controls the formatting of the commit message. The default for git-log is not to show a diff at all, which is why "git log --oneline" truly has only one line per commit. Using the "-L" option implies showing a diff. Try adding "-s" or "--no-patch" to suppress it. > Occurs on `git version 2.26.GIT` > (e870325ee8575d5c3d7afe0ba2c9be072c692b65), as well as whatever `git > version 2.20.1`. Note that the combination of "-s" and "-L" was added in v2.22, so it will work on one but not the other. -Peff