Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp835754pxj; Wed, 2 Jun 2021 12:43:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLxxeTaLsDxjgYM6DlPm1NKyCLq7PYu/7qjRJwOEpeL3PDzCJG0ddicsvAPaj93z/Btd6m X-Received: by 2002:a17:906:2c52:: with SMTP id f18mr21875229ejh.258.1622663008553; Wed, 02 Jun 2021 12:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622663008; cv=none; d=google.com; s=arc-20160816; b=geRa3OqrjTsIly62p+MtB8HtNd1G4i+k82uAeHCLSDUrHGVJcEr9voLsEVBpqjR/cw 53JboBN9t4eQ7WtrraLADXvFULp1jZTD2zWG5m2GDzo6ho077CyfN3WKOcU54Gkf6U0l WTZ2Vin+OyVl9XAT4uW2yp2DqRVjtYfavMzavCe1qw9XEfnjuOumZVqeFh8DOe3Ks7tA pdjIqdUv13rpYs3F0q0GGscNdh602HI28VWeLaPNM5Dmg9BrFyfRAwA/w4k2/fGC3wpE 2JEQ6nlkRol2SpOrKSeABdxBA6xRNQx5+YPyusIxPV94yYKgYYJiVD8UHTwA9ytWpM05 XZyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VXM916lfkO68AGVYAVVKzngsp7xw6VP9qJatS89TJDQ=; b=iytmipbh81m3h9k0rCUwjH3wBPu65xuhxSw9NsBN3nqCW7II6kGgCP0IRCykk1AYm1 6v5CpeMuJ8cTssNsfnNyYxd0YVYKne5K3CtE3L2JdydpP1ac5p9+fhp+7W+MHv4FqaSQ 1OPf9+i8+zs5s77si02uydA0J5D9Yy6tOGQoQl5sItlnMPMjYQcRd2WM1naOkS6/xC2h ouqVXljqfhcXzD1elELne32rahX9vvNwNN2ahF0eU8vBkJZcKkbKtn1d2c4aUjqp0FXH Fm6HRXtZI/Reqk8MBtDtfzDdlhsjkDOy5aCxSQlSC2F093HaBbn3V8BMsgyvGsAC/bc1 Facw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ttaylorr-com.20150623.gappssmtp.com header.s=20150623 header.b="yom/k1cY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si597228edd.104.2021.06.02.12.43.04; Wed, 02 Jun 2021 12:43:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ttaylorr-com.20150623.gappssmtp.com header.s=20150623 header.b="yom/k1cY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbhFBTnb (ORCPT + 99 others); Wed, 2 Jun 2021 15:43:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229467AbhFBTna (ORCPT ); Wed, 2 Jun 2021 15:43:30 -0400 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DF45C06174A for ; Wed, 2 Jun 2021 12:41:47 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id j184so3612448qkd.6 for ; Wed, 02 Jun 2021 12:41:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ttaylorr-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=VXM916lfkO68AGVYAVVKzngsp7xw6VP9qJatS89TJDQ=; b=yom/k1cYjeziEpSAxyhHbN/6wHxOkLzYl9GkEyX+B7jrWcu5LhmKc0tkPmZG2fFBkk /Zrq0Y6+DL6WXsZb8pLrLUaPdKlE6MNUZ+u4ROLUtjJdov10nx5BpDeq/lLkXkfJketm vgU64ahIht8WmizFhoYxcqsFxXbXmCplgfIjYgpQGGwGxMEAmG0OVZ/GCqvKAT1ayk4+ CwcgdkRp7p8WdvBdP5pHkJxDXxcSO3unb9ae+55RBucCNm6jaeCT8/ixJ3xqdksSqYqs E2UVroA8D6m/2cJHRAWMrF5//1l2n7ZRntnkhJ4I8weaFqTrLvlEf+peS879BZ63za2h p02w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=VXM916lfkO68AGVYAVVKzngsp7xw6VP9qJatS89TJDQ=; b=JNP5fJnBu0SFe6J5GuzV9qWmzfdDvxWjISfGa7jDe9QvIg6Fsnb8yDI0bFFn8BFgi2 0ANbP8z9PRl7kd42tst8xbnSPoA5snMdxeEsGQMJSRcJRVdh9uLrfBzLis8jcHDxcP+R ktGRSJYbTurMx3V13o6wtQbsPivAIqIsrwp2c66Wy513vLXTuvvwTpP19AJzZZrAwrNk ASG2GLTqlKF5cPVa9NHa7IWopRS8ZBO54LQzjjVmYxGt91XP5exgQVbCMjz1ye5aiwm+ scix7zM+FcoqtW+buyc0ZFR4rfb13sY5MjdW/cnCdm+XOu8AFVKro+1eJ2+3+Nor4SC7 enKg== X-Gm-Message-State: AOAM531qFwaI7qeQeQwsmbD2JGDFi8v2AzORrWta6Qe1VQl/a2WuNdUG +0FL1JRgBV2uU33KuySxJu2kHQXBmEJbND/6 X-Received: by 2002:a05:620a:2a01:: with SMTP id o1mr4499975qkp.137.1622662906284; Wed, 02 Jun 2021 12:41:46 -0700 (PDT) Received: from localhost ([2605:9480:22e:ff10:9178:81cf:a7f0:8e5d]) by smtp.gmail.com with ESMTPSA id f13sm475634qkk.107.2021.06.02.12.41.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 12:41:45 -0700 (PDT) Date: Wed, 2 Jun 2021 15:41:44 -0400 From: Taylor Blau To: Al Viro Cc: Mathieu Desnoyers , git@vger.kernel.org, Peter Zijlstra , Thomas Gleixner , linux-kernel , Jiri Kosina , Greg Kroah-Hartman Subject: Re: git feature request: git blame --ignore-cleanup/--ignore-trivial Message-ID: References: <30399052.5964.1622647235870.JavaMail.zimbra@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 02, 2021 at 03:29:44PM +0000, Al Viro wrote: > > Any maybe the patterns associated to "cleanup" and "trivial" commits > > should be something that can be configured through a git config > > file. > > Just an observation: quite a few subtle bugs arise from mistakes in > what should've been a trivial cleanup. Hell, I've seen bugs coming > from rebase of provably no-op patches - with commit message unchanged. > So IME this is counterproductive... Yes, I find excluding revisions from 'git blame' to be rarely useful, exactly for this reason. You could probably use the '--ignore-revs-file' option of 'git blame' to exclude commits you consider trivial ahead of time. If you had an 'Is-trivial' trailer, I would probably do something like: $ git log --format='%H %(trailers:key=Is-trivial)' | grep "Is-trivial: true" | cut -d" " -f1 >exclude $ git blame --ignore-revs-file exclude ... Thanks, Taylor