From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42062C04AB1 for ; Thu, 9 May 2019 21:54:07 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 7781E21479 for ; Thu, 9 May 2019 21:54:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=monjalon.net header.i=@monjalon.net header.b="lFNzK8gG"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="suQArVSw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7781E21479 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=monjalon.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5B9F34C6C; Thu, 9 May 2019 23:54:05 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 51D4E49DF for ; Thu, 9 May 2019 23:54:03 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id EC69324094; Thu, 9 May 2019 17:54:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 09 May 2019 17:54:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=7jHEYUM534IyRMLlPjfgWqVoMWeFe9wH/trSmDFvhfc=; b=lFNzK8gGUzS8 HY5yu/igJX65SLG7oEIa5SeB0gKM5H9YdzZ6EeFYZlPFzPfadaAYJ1JomCwIvFfc o1rsLUUgHfHSf1tpYElrRsXppshbAvaR+CtAwA9LU1wkEGJpBOEUGObUcWdRKLd3 nhF7ThGgemuwcCGvvOZtT75ZEJOx1NI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=7jHEYUM534IyRMLlPjfgWqVoMWeFe9wH/trSmDFvh fc=; b=suQArVSwM+zJBPcTnpGBgHaLM7ctDNHriyrQ0kqs9F6J+8Y1VHyFOz4eu MPubWUDeO1eDK9ljMfCjbOFTs4beF6kV2lGXI0iiGSkZNdxwifhoMBfnWi3bTrti S0sFW4S6wvXssHRVXDR4uSLhD6wc9dWfMlhahNjg0DqZMQiSh5jVOxo6Xjl1jUYU TxKSmwRlNyuSE3ROHReUYqbOPE6fzhqsw3ZGlkaLc5qnQoEGA+K0VKe52EPgNwk6 rl3Dc7anxDqgL7Yeo8U7MPKsfIFsJS2V++H714DEqKr30UF/RybYInp2TUdhTtpW xzl4LEwfqVtASdMy+8G4gIH/O5ZVw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrkeeigddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhh ohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 79E5E80061; Thu, 9 May 2019 17:54:01 -0400 (EDT) From: Thomas Monjalon To: David Marchand Cc: dev@dpdk.org, ferruh.yigit@intel.com Date: Thu, 09 May 2019 23:54:00 +0200 Message-ID: <2117699.YQSt9e6Vg7@xps> In-Reply-To: <1553260606-28325-1-git-send-email-david.marchand@redhat.com> References: <1553260606-28325-1-git-send-email-david.marchand@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] devtools: select patches to check with git range X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 22/03/2019 14:16, David Marchand: > --- a/devtools/checkpatches.sh > +++ b/devtools/checkpatches.sh > - usage: $(basename $0) [-q] [-v] [-nX|patch1 [patch2] ...]] > + usage: $(basename $0) [-q] [-v] [-nX|patch1 [patch2] ...]] [-r range] The option -r should be before the filename arguments, and inside the same brackets as -n as they are exclusive. (je clair ne pas ;) > The patches to check can be from stdin, files specified on the command line, > - or latest git commits limited with -n option (default limit: origin/master). > + or latest git commits limited with -n option or commits in the range > + specified with -r option (default: origin/master..). I suggest this reword: The patches to check can be from stdin, files specified on the command line, latest git commits limited with -n option, or commits in the git range specified with -r option (default: "origin/master.."). [...] > if [ $number -eq 0 ] ; then > - commits=$(git rev-list --reverse origin/master..) > + commits=$(git rev-list --reverse $range) > else > commits=$(git rev-list --reverse --max-count=$number HEAD) > fi Looks good and very useful, thanks :)