mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 15:36:55 +08:00
checkkconfigsymbols.py: support git's "^" syntax
Support git's "^" syntax for diffing two commits, for instance via "--diff HEAD^^^..HEAD". Signed-off-by: Michael Ellermann <mpe@ellerman.id.au> Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
07d9a38068
commit
0d18c19288
@@ -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\'")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user