Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756094AbcJ0Orw (ORCPT ); Thu, 27 Oct 2016 10:47:52 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34893 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751032AbcJ0Ort (ORCPT ); Thu, 27 Oct 2016 10:47:49 -0400 From: Valentin Rothberg To: gregkh@linuxfoundation.org, mpe@ellerman.id.au Cc: valentinrothberg@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH] checkkconfigsymbols.py: support git's "^" syntax Date: Thu, 27 Oct 2016 14:34:57 +0200 Message-Id: <20161027123457.4628-1-valentinrothberg@gmail.com> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 910 Lines: 24 Support git's "^" syntax for diffing two commits, for instance via "--diff HEAD^^^..HEAD". Signed-off-by: Michael Ellermann Signed-off-by: Valentin Rothberg --- scripts/checkkconfigsymbols.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkkconfigsymbols.py b/scripts/checkkconfigsymbols.py index a32e4da4c117..3820f00b066a 100755 --- a/scripts/checkkconfigsymbols.py +++ b/scripts/checkkconfigsymbols.py @@ -88,7 +88,7 @@ def parse_options(): if args.commit and args.diff: sys.exit("Please specify only one option at once.") - if args.diff and not re.match(r"^[\w\-\.]+\.\.[\w\-\.]+$", args.diff): + if args.diff and not re.match(r"^[\w\-\.\^]+\.\.[\w\-\.\^]+$", args.diff): sys.exit("Please specify valid input in the following format: " "\'commit1..commit2\'") -- 2.9.3