Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp664834pxj; Wed, 2 Jun 2021 08:25:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4TpXxjv7l9C3AUSO+VWLZxhV0qyezTHz9OD6qo9bmkZmeTcocjaa7ZOmhx0R8ghj80ygF X-Received: by 2002:a17:907:2074:: with SMTP id qp20mr16981944ejb.35.1622647501691; Wed, 02 Jun 2021 08:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622647501; cv=none; d=google.com; s=arc-20160816; b=lwm4R/PdiMViWN0J/bUJyUfPcENEeTu/EuuyyD36DnamLk30xr3nbAw86ggF1uooeD ef8qVijk9EjQNgTgs1OZitkAB/TmkvEPZfuII4fVmTwXLB9Vm7/PIOt/+HqvS7T2XDCu iZbWR+xgA1WTnR2IlEra2g/wMs2xC78m5lsWW1c2NUHoXEmH4ysyy8kzK2NK/wnaHcuT G10169XJB3asJOHeGKqIWNxZc7eyqo4BGGhA5W9HlJ0hwys9BvBAW7bjYmEZomJQmeo8 WQ5pwHLw/nBlCswAyPeR1Z7QJgFzSUyBsAzOkYy27ll0/C1VwwEXmK40JbjAc4lYKmyK qpww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-topic:thread-index :content-transfer-encoding:mime-version:subject:message-id:cc:to :from:date:dkim-signature:dkim-filter; bh=Uwm6mYAnQeCAyeFqmmDWETNfM8TkaJyhdProBbIWoVY=; b=JW0qxKilKnRLyb74aE3ULPLHR5dL0Xs15XjPiZePrZcZym9dFOCbIdP9sQDrUzqvsV qeHtG40W1aiVNRPygZN7COCaxjnUaZpBrypwbqtQD/hehObtq33KC2weEPpTJD6DuUEW DClZFKC8z+4iAHb6QpnRV9GU9a+SIifJwUKUc84kTNBsVj1wSQ/9QQ+bUA9Dr4G3ps+F t06kWd18s0j/ecxZHzjd2SOjusOs10IB08lT0jWbtiAI2CG2To7/DPnjZ/3Ay/KP7Ej9 ao7OVSO5awaCy05dY2IpTu3/WdZn0nS5DD9MteJDwDKh/DR7+3dy6DknyN7vHh3o1Wui R/eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=IYb5iAHF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do18si115076ejc.517.2021.06.02.08.24.38; Wed, 02 Jun 2021 08:25:01 -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=@efficios.com header.s=default header.b=IYb5iAHF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231886AbhFBPWd (ORCPT + 99 others); Wed, 2 Jun 2021 11:22:33 -0400 Received: from mail.efficios.com ([167.114.26.124]:36804 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231204AbhFBPWU (ORCPT ); Wed, 2 Jun 2021 11:22:20 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 6B491303338; Wed, 2 Jun 2021 11:20:36 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id oA9Znan3JO-5; Wed, 2 Jun 2021 11:20:36 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id EA75D3034A8; Wed, 2 Jun 2021 11:20:35 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com EA75D3034A8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1622647235; bh=Uwm6mYAnQeCAyeFqmmDWETNfM8TkaJyhdProBbIWoVY=; h=Date:From:To:Message-ID:MIME-Version; b=IYb5iAHF95VdbAlykkiJH1VcMtofjpo/R7H3jJFwLUTTzLd9OhxPhBIGBlGs8EUqs pQfrQbHRO5KJjCOql7wJv9YiO36Fx0zE1hDUjTfvaHkxVkTalro2J7FtDwSHcNS/hP bV7GNKUX0+FB4exGP8MHYR+EFqyEkiWUwp8jOo9mTpWTQ/OyXLUN2zpiswRIoBnSKj Hhe2RCiuqbPWH5hWAGrXwSXtcAXDLQQznnI3BtbQKEUSp+AS+iixZ+hJwRG/SPOgi9 E81ociALpdpcTu1slRN/mZJarsrb+n4CBeggaWR/6dg5pY9s72fLXOhRqb60FkgFbp 8pi8Y9CI+BItA== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dHpPiLGh3TOw; Wed, 2 Jun 2021 11:20:35 -0400 (EDT) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id DA1A6303337; Wed, 2 Jun 2021 11:20:35 -0400 (EDT) Date: Wed, 2 Jun 2021 11:20:35 -0400 (EDT) From: Mathieu Desnoyers To: git@vger.kernel.org Cc: Peter Zijlstra , Thomas Gleixner , linux-kernel , Jiri Kosina , Greg Kroah-Hartman Message-ID: <30399052.5964.1622647235870.JavaMail.zimbra@efficios.com> Subject: git feature request: git blame --ignore-cleanup/--ignore-trivial MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.26.124] X-Mailer: Zimbra 8.8.15_GA_4018 (ZimbraWebClient - FF88 (Linux)/8.8.15_GA_4026) Thread-Index: CgspAIu30m0Vwa253dc6f6g5DlZX3A== Thread-Topic: git feature request: git blame --ignore-cleanup/--ignore-trivial Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Following a discussion with Peter Zijlstra about whether code cleanup and functional changes done to the Linux kernel scheduler belong to separate patches or should be folded together, the argument for folding cleanup and function changes came to be mainly motivated by the current behavior of git blame: code cleanup patches end up burying the important changes so it becomes cumbersome to find them using git blame. Considering the added value brought by splitting cleanups from functional changes from a maintainer perspective (easier reverts) and from a reviewer perspective (easier to focus on the functional changes), I think it would be good to improve the git tooling to allow easily filtering out the noise from git blame. Perhaps a new git blame "--ignore-trivial" and/or "--ignore-cleanup" could solve this by filtering out "trivial" and "cleanup" patches from the history it considers. Tagging patches as trivial and cleanup should be done in the patch commit message (possibly in the title), and enforcing proper tagging of commits is already the responsibility of the maintainer merging those cleanup/trivial commits into the Linux kernel anyway. Under the hood, I suspect it could use something similar to git log --grep= --invert-grep. This should allow git blame users to easily filter out the noise and focus on the relevant functional changes. Any maybe the patterns associated to "cleanup" and "trivial" commits should be something that can be configured through a git config file. Thoughts ? Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com