From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CF297A0C45 for ; Sat, 12 Jun 2021 15:57:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B726240DDB; Sat, 12 Jun 2021 15:57:05 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2057.outbound.protection.outlook.com [40.107.237.57]) by mails.dpdk.org (Postfix) with ESMTP id 104584003E; Sat, 12 Jun 2021 15:57:04 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kYtWX96bsg8xATT0f2GFV3e3OldIGDBD8LtEE9u4Xx8E0eudze7RwgATGQkup5vklK1VAOt5Ig7+cKpN/hB3nZbGDne9gOkT6eB1SQIutUmtmYz1JKSzBrER5PKAvin4p4rk/6vij0llRXqru9VoO+zTjvVM44ybx0YZ2oovbZt2kJCiv4rYLwrXal7lefWz22w0cutvygfuLGMQQuo0cJ4FOQiLAw2wF36fD7OrqWMR34wLedO0pRXYddAxMKfy9CSl/JakS44UwB3j2kghQlxJ8gPcMZ1KSZY+AuGxO2jEQPg6+u0PsgeCOtqndwQaUNZ5iZaCa1DJYkELPiVibw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3WHEeNhqMLhcSm3XUo0vCauwpwaxe0LzlD25rBhhRNU=; b=HoBk/cMHpeUP/sQUq9DjwtTM211A0wgAgk9TQ/3DqLftkhFCVpoPvMKAy1r+vfmW+MdZkRdFJFy8L8M/IIpE/d3WLVjYg4S5tiEABdxzr6j7ZqVIwpMmMKGWBLmTKRK2QJPRCUmxez+WhxxKL6/L+01YNQH+1RbvGEEOjSPi2YVi4d+XWF15lsrrKImMigKvoQrCN1NFlhgK5s3YtBK6AkvZ9R5QQqykuRKWbofuqNLTdWhpmp5JautkeamEB6Y/uo+aiGB1hYnd4u9QXqrls/6EMb7j/PniYA4VDtr+xYokRBYb2ydfwUuA9uIzM34qadSHqv2Z1MrBqEuaDLlS8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3WHEeNhqMLhcSm3XUo0vCauwpwaxe0LzlD25rBhhRNU=; b=El0qUjaiN/j2Gv9haFtWllj73EhvWGZn/4DWi34tbL5YWjLh3R/NgI46rw31DBNRREyXAZZYrB84hKgZJhQRcS+nNeseJZnMFvI+5Tq1SMWcetKv7bFGi2EDRLPUNrkFRXYS2VrFF110SfdpAwM7dwOPhnm8Cs/yX+tS9YvWvdFSvl2BvQKdOXQ5/RxM7kSSmgDPPKM/DfvywSeqpQSQ5hqt4iTQJ1xN1ShC37KjS/qzydcek+yjyMZhDiNd2Pc43HBAw+9AZgw3+hCeQm5jam7abgGA20GkSxhJF6pTc992P1uTNbkRgbZLOTT1lDY0LDj5n1UJX07JELr9JXujcQ== Received: from DM6PR03CA0096.namprd03.prod.outlook.com (2603:10b6:5:333::29) by SA0PR12MB4429.namprd12.prod.outlook.com (2603:10b6:806:73::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Sat, 12 Jun 2021 13:57:02 +0000 Received: from DM6NAM11FT028.eop-nam11.prod.protection.outlook.com (2603:10b6:5:333:cafe::b9) by DM6PR03CA0096.outlook.office365.com (2603:10b6:5:333::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20 via Frontend Transport; Sat, 12 Jun 2021 13:57:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT028.mail.protection.outlook.com (10.13.173.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4219.21 via Frontend Transport; Sat, 12 Jun 2021 13:57:01 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 12 Jun 2021 13:56:59 +0000 From: Xueming Li To: CC: Luca Boccassi , Christian Ehrhardt , Thomas Monjalon , , Yuanhan Liu Date: Sat, 12 Jun 2021 21:56:28 +0800 Message-ID: <20210612135628.20460-2-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210612135628.20460-1-xuemingl@nvidia.com> References: <20210612135628.20460-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 825fd9cb-a173-4938-4adc-08d92da9f423 X-MS-TrafficTypeDiagnostic: SA0PR12MB4429: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:191; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xP9gT3puXpdiCbWm4VrfVjGceWO5+3NEBPNJdpLWqnyHY6Shak4okjIUHtm07fhS3iMHJF/r/3qVeuNPRbWEQnd0Hrzt6ByvqHZOrIYf7c0naW/I/drFIt0yyqGSfQxTWFlIrJIUj1qo28F6AuKOVv+WWLr6ab+lLhqUwFb5b6l/shL313t7rl1QwpL0x1kuLRkJsTBdPN6DsiNc8uma+f57uWFd/C+WOmFAS4GuJE+Z+KPa3wvKJ1gvq/vO0iKtnWG4QlPcTw0XSLJR2Q101mpJWQLnF6OyxcEYHbNBSN08QNUhoH0Z0k8bocpzfwA3hwZgXYbADpiDaHCda5tkhefCXrTQmqF7DEPtDYorjbVvioZpgnjHzXxCM/DARLkatKJfil/a78pUEJzpUR7aiWNQM2VUYvTgKr1HGnyM6QreQLrfAR3hITzIcdrrglI9+LHEtS6rTFgjxdg0GdsEXb5fDHq1eBK5YqrqV9Etfcg42jQqyrwREoK0HCpVnXsSkNC6MjQ+CXOKSGLHgKqnZLvEZoF1ida1to+WwxZrczGTebfKKOrZF0YQCYshCs0p1YVmrVDneQ08KJqnJXLefjNegMcFYcC+7qyyUaP2dKSHMC3TfLGjgIhD7AltmhkDjT2MZSwJFvFp2SZQieF1IdXJSIviGi9fWLqm12W21YU= X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(346002)(136003)(376002)(396003)(39860400002)(36840700001)(46966006)(7696005)(36756003)(478600001)(55016002)(83380400001)(356005)(6666004)(316002)(7636003)(2616005)(54906003)(5660300002)(6916009)(82740400003)(47076005)(36906005)(36860700001)(70206006)(8676002)(70586007)(82310400003)(16526019)(186003)(2906002)(4326008)(8936002)(86362001)(336012)(6286002)(26005)(426003)(1076003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2021 13:57:01.7263 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 825fd9cb-a173-4938-4adc-08d92da9f423 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT028.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4429 Subject: [dpdk-stable] [PATCH 2/2] devtools: auto detect branch to search fix patches X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Current fix scan scripts scanned specified range in current(HEAD) branch. When users run it in a earlier branch, few patches were scanned. This patch auto etects branch to scan from range. Fixes: 752d8e097ec1 ("scripts: show fixes with release version of bug") Cc: Thomas Monjalon Cc: stable@dpdk.org Signed-off-by: Xueming Li --- devtools/git-log-fixes.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devtools/git-log-fixes.sh b/devtools/git-log-fixes.sh index 5fc57da913..9a8a9d6739 100755 --- a/devtools/git-log-fixes.sh +++ b/devtools/git-log-fixes.sh @@ -34,13 +34,15 @@ done shift $(($OPTIND - 1)) [ $# -ge 1 ] || usage_error 'range argument required' range="$*" +range_last=$(git log --oneline v21.05-rc3..v21.05 |head -n1|cut -d' ' -f1) +# use first branch +refbranch=$(git branch --contains $range_last -r --sort=-authordate |head -n1) # get major release version of a commit commit_version () # { local VER="v*.*" # use current branch as history reference - local refbranch=$(git rev-parse --abbrev-ref HEAD) local tag=$( (git tag -l $VER --contains $1 --sort=creatordate --merged $refbranch 2>&- || # tag --merged option has been introduced in git 2.7.0 # below is a fallback in case of old git version -- 2.25.1