Index: clang_format_merge_driver.py |
diff --git a/clang_format_merge_driver.py b/clang_format_merge_driver.py |
index 5f0449a28b10ebc65757b70f7b8591a28a9cdb4a..9b0cbb9436e13c4753c2eade18fa011420d1c555 100755 |
--- a/clang_format_merge_driver.py |
+++ b/clang_format_merge_driver.py |
@@ -27,6 +27,15 @@ def main(): |
sys.exit(1) |
base, current, others, file_name_in_tree = sys.argv[1:5] |
+ |
+ if file_name_in_tree == '%P': |
+ print >>sys.stderr |
+ print >>sys.stderr, 'ERROR: clang-format merge driver needs git 2.5+' |
+ if sys.platform == 'darwin': |
+ print >>sys.stderr, 'Upgrade to Xcode 7.2+' |
+ print >>sys.stderr |
+ return 1 |
+ |
print 'Running clang-format 3-way merge driver on ' + file_name_in_tree |
try: |