Skip to contentSkip to conversation

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

PATCH New Valentin Rothberg 1 participant 1 message Oct 27, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkkconfigsymbols.py: support git's "^" syntax

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

---
 scripts/checkkconfigsymbols.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkkconfigsymbols.py +1 -1
index a32e4da4c117..3820f00b066a 100755
@@ -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\'")
 
Signature · 1 line
2.9.3