History

checkkconfigsymbols.py: support git's "^" syntax

Support git's "^" syntax for diffing two commits, for instance via "--diff HEAD^^^..HEAD".

Valentin Rothberg committed 10 years ago

Commit 0d18c191 parent 07d9a381 file · +1 −1Browse files

Unified · Split

scripts/checkkconfigsymbols.py+1−1
@@ -88,7 +88,7 @@ def parse_options(): · 87 unmodified lines
8888 if args.commit and args.diff:
8989 sys.exit("Please specify only one option at once.")
9090
91− if args.diff and not re.match(r"^[\w\-\.]+\.\.[\w\-\.]+$", args.diff):
91+ if args.diff and not re.match(r"^[\w\-\.\^]+\.\.[\w\-\.\^]+$", args.diff):
9292 sys.exit("Please specify valid input in the following format: "
9393 "\'commit1..commit2\'")
9494