Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753528AbdF2WLk (ORCPT ); Thu, 29 Jun 2017 18:11:40 -0400 Received: from mga14.intel.com ([192.55.52.115]:26534 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752545AbdF2WLj (ORCPT ); Thu, 29 Jun 2017 18:11:39 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,283,1496127600"; d="scan'208";a="1146256073" Date: Thu, 29 Jun 2017 15:11:37 -0700 From: "Luck, Tony" To: Borislav Petkov Cc: Dave Hansen , Naoya Horiguchi , x86@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yazen Ghannam Subject: git send-email (w/o Cc: stable) Message-ID: <20170629221136.xbybfjb7tyloswf3@intel.com> References: <20170616190200.6210-1-tony.luck@intel.com> <20170619180147.qolal6mz2wlrjbxk@pd.tnic> <20170621174740.npbtg2e4o65tyrss@intel.com> <20170622093904.ajzoi43vlkejqgi3@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170622093904.ajzoi43vlkejqgi3@pd.tnic> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1060 Lines: 35 On Thu, Jun 22, 2017 at 11:39:05AM +0200, Borislav Petkov wrote: > On Wed, Jun 21, 2017 at 10:47:40AM -0700, Luck, Tony wrote: > > I would if I could work out how to use it. From reading the manual > > page there seem to be a few options to this, but none of them appear > > to just drop a specific address (apart from my own). :-( > > $ git send-email --to ... --cc ... --cc ... --suppress-cc=all ... > > That should send only to the ones you have in --to and --cc and suppress > the rest. > > Do a > > $ git send-email -v --dry-run --to ... --cc ... --cc ... --suppress-cc=all ... > > to see what it is going to do. So there is a "--cc-cmd" option that can do the same as those "-cc" arguments. Combine that with --suppress-cc=bodycc and things get a bit more automated. In my .gitconfig: [sendemail] suppresscc = bodycc ccCmd = /home/agluck/bin/sendemail.ccCmd and the command is some sed(1) to grap the Cc: lines except the stable@vger.kernel.org one: sed -n \ -e '/Cc: stable@vger.kernel.org/d' \ -e '/^Cc: /s///p' \ -e '/^---/q' $1 -Tony